Soenneker.Extensions.DateTimeOffsets.Months
4.0.114
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Extensions.DateTimeOffsets.Months --version 4.0.114
NuGet\Install-Package Soenneker.Extensions.DateTimeOffsets.Months -Version 4.0.114
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.DateTimeOffsets.Months" Version="4.0.114" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.DateTimeOffsets.Months" Version="4.0.114" />
<PackageReference Include="Soenneker.Extensions.DateTimeOffsets.Months" />
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.DateTimeOffsets.Months --version 4.0.114
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.DateTimeOffsets.Months, 4.0.114"
#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.DateTimeOffsets.Months@4.0.114
#: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.DateTimeOffsets.Months&version=4.0.114
#tool nuget:?package=Soenneker.Extensions.DateTimeOffsets.Months&version=4.0.114
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Extensions.DateTimeOffsets.Months
A collection of helpful DateTimeOffset month extension methods.
Installation
dotnet add package Soenneker.Extensions.DateTimeOffsets.Months
Quick start
using Soenneker.Extensions.DateTimeOffsets.Months;
DateTimeOffset dateTimeOffset = DateTimeOffset.UtcNow;
var result = dateTimeOffset.ToStartOfMonth();
Common operations
ToStartOfMonth()- Returns the start of the month containingdateTimeOffset. No time zone conversion is performed and the offset is preserved.ToEndOfMonth()- Returns the end of the month containingdateTimeOffset.ToStartOfNextMonth()- Returns the start of the next month relative todateTimeOffset.ToStartOfPreviousMonth()- Returns the start of the previous month relative todateTimeOffset.ToEndOfPreviousMonth()- Returns the end of the previous month relative todateTimeOffset.ToEndOfNextMonth()- Returns the end of the next month relative todateTimeOffset.ToStartOfTzMonth()- Computes the start of the month intzthat contains the instantutcInstant, returning the result as a UTCDateTimeOffset. This computes the boundary as a local wall time (00:00 on the 1st) and maps it to UTC using the time zone's rules at that wall time (DST-safe).ToEndOfTzMonth()- Computes the end of the month intzthat contains the instantutcInstant, returning the result as a UTCDateTimeOffset.ToStartOfPreviousTzMonth()- Computes the start of the previous month intzrelative to the instantutcInstant, returning the result as a UTCDateTimeOffset.ToEndOfPreviousTzMonth()- Computes the end of the previous month intzrelative to the instantutcInstant, returning the result as a UTCDateTimeOffset.ToStartOfNextTzMonth()- Computes the start of the next month intzrelative to the instantutcInstant, returning the result as a UTCDateTimeOffset.ToEndOfNextTzMonth()- Computes the end of the next month intzrelative to the instantutcInstant, returning the result as a UTCDateTimeOffset.
| 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.Extensions.DateTimeOffsets (>= 4.0.131)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Soenneker.Extensions.DateTimeOffsets.Months:
| Package | Downloads |
|---|---|
|
Soenneker.Extensions.DateRangeType
A collection of helpful DateRangeType enum extension methods |
|
|
Soenneker.Extensions.DateTimeOffsets.Suite
A collection of all of the helpful DateTimeOffset extension methods |
|
|
Soenneker.Utils.DateTimeOffsets
Helpful utility methods surrounding DateTimeOffsets |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.167 | 134 | 10/27/2026 |
| 11.0.166 | 137 | 10/26/2026 |
| 11.0.165 | 106 | 10/26/2026 |
| 11.0.164 | 113 | 10/26/2026 |
| 11.0.163 | 160 | 10/26/2026 |
| 4.0.162 | 636 | 10/15/2026 |
| 4.0.161 | 95 | 10/15/2026 |
| 4.0.160 | 143 | 10/14/2026 |
| 4.0.158 | 155 | 10/14/2026 |
| 4.0.157 | 130 | 10/14/2026 |
| 4.0.156 | 138 | 10/14/2026 |
| 4.0.150 | 171 | 10/12/2026 |
| 4.0.148 | 195 | 10/12/2026 |
| 4.0.147 | 143 | 10/12/2026 |
| 4.0.146 | 129 | 10/12/2026 |
| 4.0.145 | 105 | 10/11/2026 |
| 4.0.144 | 280 | 10/11/2026 |
| 4.0.143 | 486 | 9/30/2026 |
| 4.0.142 | 168 | 9/30/2026 |
| 4.0.114 | 234 | 8/29/2026 |
Loading failed
Improve XML documentation