RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.IsValidDateDay Function

Indicates whether a specified year and day of the year represent a valid date.

Pascal
function IsValidDateDay(const AYear: Word; const ADayOfYear: Word): Boolean;
C++
Boolean IsValidDateDay(const Word AYear, const Word ADayOfYear);

DateUtils

IsValidDateDay returns true if 

AYear falls in the range from 1 to 9999 inclusive. 

ADay falls in the range from1 to the number of days in the specified year. 

Otherwise, IsValidDateDay returns false. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!