Indicates whether a specified year, month, and day represent a valid date.
function IsValidDate(const AYear: Word; const AMonth: Word; const ADay: Word): Boolean;
Boolean IsValidDate(const Word AYear, const Word AMonth, const Word ADay);
DateUtils
IsValidDate returns true if
AYear falls in the range from 1 to 9999 inclusive.
AMonth falls in the range from 1 to 12 inclusive.
ADay falls in the range from1 to the number of days in the specified month.
Otherwise, IsValidDate returns false.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|