Soenneker.Enums.DateRangeType 11.0.194

Prefix Reserved
dotnet add package Soenneker.Enums.DateRangeType --version 11.0.194
                    
NuGet\Install-Package Soenneker.Enums.DateRangeType -Version 11.0.194
                    
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.194" />
                    
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.194" />
                    
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.194
                    
#r "nuget: Soenneker.Enums.DateRangeType, 11.0.194"
                    
#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.194
                    
#: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.194
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Enums.DateRangeType&version=11.0.194
                    
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.194 81 11/19/2026
11.0.193 75 11/18/2026
11.0.192 104 11/18/2026
11.0.191 163 11/14/2026
11.0.190 161 11/11/2026
11.0.189 102 11/11/2026
11.0.188 98 11/11/2026
11.0.187 287 10/27/2026
11.0.186 131 10/26/2026
11.0.185 121 10/26/2026
11.0.184 113 10/26/2026
11.0.183 103 10/26/2026
11.0.182 102 10/26/2026
4.0.181 700 10/15/2026
4.0.180 120 10/14/2026
4.0.178 119 10/14/2026
4.0.177 112 10/14/2026
4.0.176 98 10/14/2026
4.0.175 111 10/14/2026
4.0.171 116 10/13/2026
Loading failed

Updated Multiple NuGet packages