Skip to main content

TcxSchedulerCustomRecurrenceInfo.GetEndDate Method

Returns the end date of the chain of occurrences.

Declaration

function GetEndDate: TDateTime;

Returns

Type
TDateTime

Remarks

The value returned by the method depends upon the Count property value:

  • the value is greater than 0 (End after) – the GetEndDate method returns the end date of the last occurrence the Count property specifies (see the TcxSchedulerOccurrenceCalculator.OccurrenceFinish property);

  • the value is 0 (End by) – the GetEndDate method returns the date bound specified by the Finish property when the last occurrence will reoccur;

  • the value is -1 (No end date) – the GetEndDate method returns the value of the cxDateUtils.NullDate constant.

See Also