Skip to main content

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

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

Namespace: DevExpress.XtraScheduler.UI

Assembly: DevExpress.XtraScheduler.v14.2.Core.dll

#Declaration

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

#Parameters

Name Type Description
startDate DateTime

A DateTime value specifying the date component of the interval's start.

startTime TimeSpan

A TimeSpan value specifying the time component of the interval's start.

endDate DateTime

A DateTime value specifying the date component of the interval's end.

endTime TimeSpan

A DateTime value specifying 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.

See Also