[Overview][Constants][Procedures and functions] |
Check whether a given year/day of year combination is a valid date.
Source position: dateutil.inc line 87
function IsValidDateDay( |
const AYear: Word; |
const ADayOfYear: Word |
):Boolean; |
AYear |
|
Year |
ADayOfYear |
|
Day in the year |
Trueif the given combination is a valid date, Falseotherwise.
IsValidDateDayreturns Trueif AYearand ADayOfYearform a valid date indication, or Falseotherwise.
AYearmust be in the range 1..9999 to be valid.
The ADayOfYearvalue is checked to see whether it falls within the valid range of dates for AYear.
|
Check whether a set of values is a valid date indication. |
|
|
Check whether a set of values is a valid time indication. |
|
|
Check whether a set of values is a valid date and time indication. |
|
|
Check whether a given year/week/day of the week combination is a valid day. |
|
|
Check whether a given year/month/week/day of the week combination is a valid day |
Program Example9; { This program demonstrates the IsValidDateDay function } Uses SysUtils,DateUtils; Var Y : Word; Begin For Y:=1996 to 2004 do if IsValidDateDay(Y,366) then Writeln(Y,' is a leap year'); End.