AppointmentModificationControllerBase.ValidateInterval(DateTime, DateTime) Method

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

Namespace: DevExpress.XtraScheduler.Native

Assembly: DevExpress.XtraScheduler.v20.1.Core.dll

Declaration

public static bool ValidateInterval(
    DateTime start,
    DateTime end
)
Public Shared Function ValidateInterval(
    start As Date,
    end As Date
) As Boolean

Parameters

Name Type Description
start DateTime

A DateTime value, representing the interval's start.

end DateTime

A DateTime value, representing 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