Skip to main content

Holiday.CheckDate(DateTime) Method

Determines whether the specified date is treated as a working day for the current holiday.

Namespace: DevExpress.Schedule

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public override DateCheckResult CheckDate(
    DateTime date
)

Parameters

Name Type Description
date DateTime

A DateTime value representing the date to check.

Returns

Type Description
DateCheckResult

A DateCheckResult.Holiday enumeration value if the date is a holiday; otherwise the DateCheckResult.Unknown value.

Remarks

The CheckDate method checks whether the date specified is the date of the Holiday object. If so, the DateCheckResult.Holiday value is returned.

See Also