Skip to content

DateTimeRange class

Defined in

Namespace: CrissCross Assembly: CrissCross.dll Full name: CrissCross.DateTimeRange Modifiers: public sealed

Summary

View source

        Represents a platform-neutral date/time range for filtering, reporting, and dashboard controls.
        

Applies to

net10.0, net10.0-windows10.0.19041, net10.0-desktop1.0, net10.0-browserwasm1.0, net9.0, net9.0-windows10.0.19041, net9.0-desktop1.0, net9.0-browserwasm1.0, net8.0, net8.0-macos14.5, net8.0-windows10.0.19041, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-tvos17.2, netstandard2.1, net471, net481

Constructors

NameSummary
.ctorInitializes a new instance of the [DateTimeRange](# class.

Properties

NameSummary
StartGets the inclusive range start.
EndGets the inclusive or exclusive range end.
PresetGets the preset that produced the range.
LabelGets the user-facing label used by range picker controls.
IsEndInclusiveGets a value indicating whether the end instant is inclusive.
MaximumDurationGets the optional maximum allowed duration.
HasValueGets a value indicating whether both range endpoints are present.
IsReversedGets a value indicating whether the start instant is after the end instant.
ExceedsMaximumDurationGets a value indicating whether the configured maximum duration is exceeded.
DurationGets the valid range duration, or Zero when the range is incomplete or invalid.
IsValidGets a value indicating whether the range is complete and satisfies validation constraints.
ValidationMessageGets validation text for invalid or incomplete ranges.
DisplayTextGets compact user-facing range text.

Methods

NameSummary
ContainsDetermines whether the supplied value falls inside this range.
Inherited members