DateRange.CoerceDate(DateTime) Method
Coerces the specified date into the current date range.
Namespace: DevExpress.UI.Xaml.Editors
Assembly: DevExpress.UI.Xaml.Editors.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
Parameters
Name | Type | Description |
---|---|---|
date | DateTime | A date to be coerced. |
Returns
Type | Description |
---|---|
DateTime | A coerced date. |
Remarks
If the specified date is less than the start date of the current date range, the CoerceDate method returns the start date. If the specified date is more than the end date of the current date range, the CoerceDate method returns the end date. If the specified date is within the current date range, the CoerceDate method returns this date.
See Also