RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.IsValidDateMonthWeek Function

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

Pascal
function IsValidDateMonthWeek(const AYear: Word; const AMonth: Word; const AWeekOfMonth: Word; const ADayOfWeek: Word): Boolean;
C++
Boolean IsValidDateMonthWeek(const Word AYear, const Word AMonth, const Word AWeekOfMonth, const Word ADayOfWeek);

DateUtils

IsValidDateMonthWeek returns true if 

AYear falls in the range from 1 to 9999 inclusive. 

AMonth falls in the range from 1 to 12 inclusive. 

AWeekOfMonth falls in the range from1 to the number of weeks in the specified month. 

ADayOfWeek falls in the range from 1 to 7. 

Otherwise, IsValidDateMonthWeek returns false. 

 

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