Returns a TDateTime that represents 1the first moment on a specified day of a specified week.
function StartOfAWeek(const AYear: Word; const AWeekOfYear: Word; const ADayOfWeek: Word = 1): TDateTime;
TDateTime StartOfAWeek(const Word AYear, const Word AWeekOfYear, const Word ADayOfWeek = 1);
DateUtils
StartOfAWeek returns the first expressible moment (12:00:00.000 AM) of the specified day of the specified week.
The AYear parameter specifies the year of the desired day.
The AWeekOfYear parameter specifies the week of the year, where 1 is the first week in AYear that includes four or more days.
The ADayOfWeek parameter indicates the desired day in the specified week, where 1 is Monday, 2 is Tuesday, and so on.
If the parameters do not specify a valid date, StartOfAWeek raises an EConvertError exception.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|