Soenneker.Extensions.DayOfWeek
4.0.96
Prefix Reserved
dotnet add package Soenneker.Extensions.DayOfWeek --version 4.0.96
NuGet\Install-Package Soenneker.Extensions.DayOfWeek -Version 4.0.96
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.Extensions.DayOfWeek" Version="4.0.96" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.DayOfWeek" Version="4.0.96" />
<PackageReference Include="Soenneker.Extensions.DayOfWeek" />
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.Extensions.DayOfWeek --version 4.0.96
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.DayOfWeek, 4.0.96"
#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.Extensions.DayOfWeek@4.0.96
#: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.Extensions.DayOfWeek&version=4.0.96
#tool nuget:?package=Soenneker.Extensions.DayOfWeek&version=4.0.96
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Extensions.DayOfWeek
Compact one-character representations for DayOfWeekType values.
Installation
dotnet add package Soenneker.Extensions.DayOfWeek
Usage
using Soenneker.Enums.DayOfWeek;
using Soenneker.Extensions.DayOfWeek;
char monday = DayOfWeekType.Monday.ToChar(); // 'M'
string friday = DayOfWeekType.Friday.ToLetter(); // "F"
DayOfWeekType? missing = null;
char missingChar = missing.ToChar(); // '\0'
string missingLetter = missing.ToLetter(); // ""
The mapping is:
| Day | Result |
|---|---|
| Monday | M |
| Tuesday | T |
| Wednesday | W |
| Thursday | T |
| Friday | F |
| Saturday | S |
| Sunday | S |
ToChar() returns the null character for a null or unrecognized value. ToLetter() returns an empty string. The abbreviations are intentionally compact rather than unique: Tuesday and Thursday collide, as do Saturday and Sunday, so they should not be used as identifiers or for round-trip parsing.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Soenneker.Enums.DayOfWeek (>= 4.0.765)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.96 | 85 | 8/30/2026 |
| 4.0.95 | 88 | 8/30/2026 |
| 4.0.94 | 84 | 8/30/2026 |
| 4.0.93 | 80 | 8/30/2026 |
| 4.0.92 | 88 | 8/29/2026 |
| 4.0.91 | 92 | 8/21/2026 |
| 4.0.90 | 98 | 8/18/2026 |
| 4.0.89 | 94 | 8/7/2026 |
| 4.0.88 | 118 | 7/28/2026 |
| 4.0.87 | 120 | 7/28/2026 |
| 4.0.86 | 117 | 7/27/2026 |
| 4.0.85 | 107 | 7/17/2026 |
| 4.0.84 | 105 | 7/16/2026 |
| 4.0.83 | 109 | 7/16/2026 |
| 4.0.81 | 124 | 7/2/2026 |
| 4.0.80 | 124 | 6/19/2026 |
| 4.0.79 | 1,258 | 6/18/2026 |
| 4.0.77 | 136 | 6/6/2026 |
| 4.0.76 | 120 | 6/5/2026 |
| 4.0.75 | 118 | 6/5/2026 |
Loading failed
Update dependency Soenneker.Enums.DayOfWeek to 4.0.765 (#470)