Skip to content

DateTimeRangePresetDefinition class

Defined in

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

Summary

View source

        Describes a reusable date/time range preset that can create a range from a deterministic reference instant.
        

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

Remarks

Initializes a new instance of the DateTimeRangePresetDefinition class.

Constructors

NameSummary
.ctorDescribes a reusable date/time range preset that can create a range from a deterministic reference instant.

Properties

NameSummary
static TodayGets the today preset definition.
static YesterdayGets the yesterday preset definition.
static LastSevenDaysGets the trailing seven-day preset definition.
static ThisMonthGets the current-month preset definition.
static CustomGets the custom preset definition.
PresetGets the preset identifier.
DisplayNameGets the user-facing preset name.

Methods

NameSummary
CreateRangeCreates a concrete range from the specified reference instant.
Inherited members