Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Delphi
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