Soenneker.Enums.DateRangeType 11.0.191

Prefix Reserved
dotnet add package Soenneker.Enums.DateRangeType --version 11.0.191
                    
NuGet\Install-Package Soenneker.Enums.DateRangeType -Version 11.0.191
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Enums.DateRangeType" Version="11.0.191" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Enums.DateRangeType" Version="11.0.191" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Enums.DateRangeType" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Enums.DateRangeType --version 11.0.191
                    
#r "nuget: Soenneker.Enums.DateRangeType, 11.0.191"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Enums.DateRangeType@11.0.191
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Enums.DateRangeType&version=11.0.191
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Enums.DateRangeType&version=11.0.191
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Enums.DateRangeType

A string-backed enum-value type for selecting a predefined calendar period or a caller-supplied custom date range.

Install

dotnet add package Soenneker.Enums.DateRangeType

Usage

using Soenneker.Enums.DateRangeType;

DateRangeType selection = DateRangeType.PreviousMonth;
string wireValue = selection.Value; // "PreviousMonth"

if (DateRangeType.TryFromValue(input, out DateRangeType? parsed))
{
    // Resolve parsed to boundaries using your application's calendar rules
}

Available values:

  • Today
  • Yesterday
  • CurrentWeek
  • PreviousWeek
  • CurrentMonth
  • PreviousMonth
  • CurrentYear
  • PreviousYear
  • Custom

System.Text.Json serializes the type as the shown string value. FromValue throws for unknown input; use TryFromValue for request values. FromName and TryFromName are also generated for member-name lookup.

This package identifies a range selection; it does not calculate start or end timestamps. The consuming application must define its time zone, first day of the week, inclusive/exclusive boundary policy, and the explicit boundaries required by Custom. Capture the reference time once before resolving relative selections so a request cannot cross a calendar boundary midway through calculation.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Enums.DateRangeType:

Package Downloads
Soenneker.Extensions.DateRangeType

A collection of helpful DateRangeType enum extension methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.191 48 11/14/2026
11.0.190 117 11/11/2026
11.0.189 84 11/11/2026
11.0.188 87 11/11/2026
11.0.187 277 10/27/2026
11.0.186 126 10/26/2026
11.0.185 116 10/26/2026
11.0.184 107 10/26/2026
11.0.183 93 10/26/2026
11.0.182 99 10/26/2026
4.0.181 619 10/15/2026
4.0.180 117 10/14/2026
4.0.178 116 10/14/2026
4.0.177 111 10/14/2026
4.0.176 96 10/14/2026
4.0.175 110 10/14/2026
4.0.171 114 10/13/2026
4.0.170 100 10/13/2026
4.0.169 128 10/12/2026
4.0.167 118 10/12/2026
Loading failed

Update dependency Soenneker.Gen.EnumValues to 11.0.67 (#810)