Skip to main content

AppointmentModificationControllerBase.ValidateInterval(DateTime, TimeSpan, DateTime, TimeSpan) Method

Checks whether the specified date and time values produce the valid time interval.

Namespace: DevExpress.XtraScheduler.Native

Assembly: DevExpress.XtraScheduler.v24.1.Core.Desktop.dll

NuGet Package: DevExpress.Scheduler.CoreDesktop

Declaration

public static bool ValidateInterval(
    DateTime startDate,
    TimeSpan startTime,
    DateTime endDate,
    TimeSpan endTime
)

Parameters

Name Type Description
startDate DateTime

A DateTime value, representing the date component of the interval’s start.

startTime TimeSpan

A TimeSpan value, representing the time component of the interval’s start.

endDate DateTime

A DateTime value, representing the date component of the interval’s end.

endTime TimeSpan

A DateTime value, representing the time component of the interval’s end.

Returns

Type Description
Boolean

True if the time interval is valid; otherwise, false.

Remarks

The time interval is valid if its end follows its start.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ValidateInterval(DateTime, TimeSpan, DateTime, TimeSpan) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also