Soenneker.Enums.DayOfWeek 4.0.770

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Enums.DayOfWeek --version 4.0.770
                    
NuGet\Install-Package Soenneker.Enums.DayOfWeek -Version 4.0.770
                    
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.DayOfWeek" Version="4.0.770" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Enums.DayOfWeek" Version="4.0.770" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Enums.DayOfWeek" />
                    
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.DayOfWeek --version 4.0.770
                    
#r "nuget: Soenneker.Enums.DayOfWeek, 4.0.770"
                    
#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.DayOfWeek@4.0.770
                    
#: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.DayOfWeek&version=4.0.770
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Enums.DayOfWeek&version=4.0.770
                    
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.DayOfWeek

A string-backed enum-value type for representing a named day in API and application contracts.

Install

dotnet add package Soenneker.Enums.DayOfWeek

Usage

using Soenneker.Enums.DayOfWeek;

DayOfWeekType day = DayOfWeekType.Monday;
string wireValue = day.Value; // "Monday"

if (DayOfWeekType.TryFromValue(input, out DayOfWeekType? parsed))
{
    // parsed is one of the shared static instances
}

Available values are Sunday through Saturday, with matching case-sensitive string values. System.Text.Json serializes the type as that string and restores recognized values to the corresponding static instance. FromValue throws for unknown input; use TryFromValue for request values. FromName and TryFromName are also generated.

DayOfWeekType is not System.DayOfWeek and does not define numeric values or culture-specific week ordering. Convert deliberately when a BCL API is required:

System.DayOfWeek systemDay = Enum.Parse<System.DayOfWeek>(day.Value);

DayOfWeekType contractDay = DayOfWeekType.FromValue(systemDay.ToString());

The type identifies a day only. The consuming application still defines the first day of the week, locale-specific display text, time zone, and business-day rules.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Soenneker.Enums.DayOfWeek:

Package Downloads
Soenneker.Extensions.DateTime.Day

A collection of helpful DateTime day-based extension methods

Soenneker.Cron.Builder

A fluent, flexible utility that dynamically constructs validated 5 or 6 field cron expressions through intuitive method chaining for any scheduling scenario.

Soenneker.Utils.CronExpressions

A comprehensive utility class that provides intuitive, validated, and fluent methods for generating dynamic and human-readable cron expressions for scheduling tasks.

Soenneker.Extensions.DateTimeOffsets.Days

A collection of helpful DateTimeOffset day extension methods

Soenneker.Extensions.DayOfWeek

A collection of helpful DayOfWeek enum extension methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.782 0 10/12/2026
4.0.781 31 10/11/2026
4.0.780 60 10/11/2026
4.0.779 70 10/11/2026
4.0.778 979 9/30/2026
4.0.777 435 9/25/2026
4.0.776 104 9/24/2026
4.0.775 124 9/24/2026
4.0.774 1,082 9/15/2026
4.0.773 255 9/15/2026
4.0.772 101 9/15/2026
4.0.771 102 9/15/2026
4.0.770 1,041 9/12/2026
4.0.769 215 9/12/2026
4.0.768 162 9/12/2026
4.0.767 1,762 9/7/2026
4.0.766 898 9/4/2026
4.0.765 1,552 8/30/2026
4.0.764 415 8/30/2026
4.0.763 125 8/30/2026
Loading failed

Update dependency Soenneker.Gen.EnumValues to 4.0.50 (#1406)