|
Purpose |
Checks that a date is valid | |
|
Old name |
#define valid_date date_ok() | |
|
Syntax |
int date_ok(date) | |
|
Parameters |
datetype* date |
Pointer to date to check |
|
Description |
The date_ok() function checks to see if a given date is valid in the Gregorian calendar. It does not have to be within the range of dates acceptable to the other arithmetic functions that deal with dates. | |
|
Return values |
Returns TRUE if date is valid, otherwise FALSE | |
|
See also |
||
|
Example |
if (!date_ok(&due_date)); | |