dxGetWeekNumber(TDateTime,TDay,TcxFirstWeekOfYear) Method
Returns the week number in a year.
Declaration
function dxGetWeekNumber(ADate: TDateTime; AStartOfWeek: TDay; AFirstWeekOfYear: TcxFirstWeekOfYear): Integer;
Parameters
Name | Type |
---|---|
ADate | TDateTime |
AStartOfWeek | TDay |
AFirstWeekOfYear | TcxFirstWeekOfYear |
Returns
Type |
---|
Integer |
Remarks
Use this function to determine the week number in a year.
The ADate parameter specifies the date that the given week contains.
The AStartOfWeek parameter specifies the day, which will be treated as the first day in each week.
The AFirstWeekOfYear parameter specifies the week that should be considered as the first week of a year.
See Also