Main Index |
TIPS Home |
ok_MDYok_MDY (routine)
Validate a given month, day, and year
Introduced in release: 1.0
Component: Generic
Purpose:
Tests the given date (month, day, year) to be sure it is a valid date. If the variable zero_flag is 0 then the date is optional, and a value of zero for month, day and year is considered valid.
Results:
The value of the function is true (1) if the date is valid. The value of the function is false (0) if the date is invalid. The variable status will contain the reason it is invalid.
Error Conditions:
The variable status contains a non zero value upon returning from the function when the input contains an error.
1100 = bad year in date
1200 = bad month in date
1300 = bad day in date
1500 = required date not given
| Last Mod Date: 09/04/1992 | © 2001 TIPS, Inc. | Doc Version: 5.0 |