TcxSchedulerDateTimeHelper.WeekCount(TDateTime,TDateTime) Method
Calculates the number of weeks contained within the time interval specified by the AStart and AFinish date/time parameters.
Declaration
class function WeekCount(const AStart: TDateTime; const AFinish: TDateTime): Integer;
Parameters
Name | Type |
---|---|
AStart | TDateTime |
AFinish | TDateTime |
Returns
Type |
---|
Integer |
Remarks
The WeekCount method returns the number of weeks contained in the time interval. If the time interval contains an incomplete week it is counted as a full week.
The AStart parameter specifies the beginning of the time interval;
The AFinish parameter specifies the end of the time interval.
See Also