Soenneker.Enums.DayOfWeek
4.0.777
Prefix Reserved
dotnet add package Soenneker.Enums.DayOfWeek --version 4.0.777
NuGet\Install-Package Soenneker.Enums.DayOfWeek -Version 4.0.777
<PackageReference Include="Soenneker.Enums.DayOfWeek" Version="4.0.777" />
<PackageVersion Include="Soenneker.Enums.DayOfWeek" Version="4.0.777" />
<PackageReference Include="Soenneker.Enums.DayOfWeek" />
paket add Soenneker.Enums.DayOfWeek --version 4.0.777
#r "nuget: Soenneker.Enums.DayOfWeek, 4.0.777"
#:package Soenneker.Enums.DayOfWeek@4.0.777
#addin nuget:?package=Soenneker.Enums.DayOfWeek&version=4.0.777
#tool nuget:?package=Soenneker.Enums.DayOfWeek&version=4.0.777
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 | Versions 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. |
-
net10.0
- Soenneker.Attributes.PublicOpenApiObject (>= 4.0.55)
- Soenneker.Gen.EnumValues (>= 4.0.52)
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.777 | 0 | 9/25/2026 |
| 4.0.776 | 24 | 9/24/2026 |
| 4.0.775 | 32 | 9/24/2026 |
| 4.0.774 | 819 | 9/15/2026 |
| 4.0.773 | 235 | 9/15/2026 |
| 4.0.772 | 88 | 9/15/2026 |
| 4.0.771 | 89 | 9/15/2026 |
| 4.0.770 | 1,020 | 9/12/2026 |
| 4.0.769 | 203 | 9/12/2026 |
| 4.0.768 | 149 | 9/12/2026 |
| 4.0.767 | 1,752 | 9/7/2026 |
| 4.0.766 | 885 | 9/4/2026 |
| 4.0.765 | 1,543 | 8/30/2026 |
| 4.0.764 | 403 | 8/30/2026 |
| 4.0.763 | 116 | 8/30/2026 |
| 4.0.762 | 149 | 8/30/2026 |
| 4.0.760 | 1,941 | 8/21/2026 |
| 4.0.759 | 1,204 | 8/18/2026 |
| 4.0.758 | 147 | 8/18/2026 |
| 4.0.757 | 361 | 8/18/2026 |
Updated NuGet packages