RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.IsValidDateWeek Function

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

Pascal
function IsValidDateWeek(const AYear: Word; const AWeekOfYear: Word; const ADayOfWeek: Word): Boolean;
C++
Boolean IsValidDateWeek(const Word AYear, const Word AWeekOfYear, const Word ADayOfWeek);

DateUtils

IsValidDateWeek returns true if 

AYear falls in the range from 1 to 9999 inclusive. 

AWeekOfYear falls in the range from1 to the number of weeks in the specified year. 

ADayOfWeek falls in the range from 1 to 7. 

Otherwise, IsValidDateWeek returns false. 

 

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