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 51 11/19/2026
11.0.193 48 11/18/2026
11.0.192 78 11/18/2026
11.0.191 131 11/14/2026
11.0.190 156 11/11/2026
11.0.189 97 11/11/2026
11.0.188 95 11/11/2026
11.0.187 286 10/27/2026
11.0.186 126 10/26/2026
11.0.185 116 10/26/2026
11.0.184 109 10/26/2026
11.0.183 97 10/26/2026
11.0.182 101 10/26/2026
4.0.181 665 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 97 10/14/2026
4.0.175 110 10/14/2026
4.0.171 115 10/13/2026
Loading failed

Updated Multiple NuGet packages