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.
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" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.DateTimeOffsets.Months" />
                    
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.Extensions.DateTimeOffsets.Months --version 4.0.114
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.DateTimeOffsets.Months&version=4.0.114
                    
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

alternate text is missing from this package README image 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 containing dateTimeOffset. No time zone conversion is performed and the offset is preserved.
  • ToEndOfMonth() - Returns the end of the month containing dateTimeOffset.
  • ToStartOfNextMonth() - Returns the start of the next month relative to dateTimeOffset.
  • ToStartOfPreviousMonth() - Returns the start of the previous month relative to dateTimeOffset.
  • ToEndOfPreviousMonth() - Returns the end of the previous month relative to dateTimeOffset.
  • ToEndOfNextMonth() - Returns the end of the next month relative to dateTimeOffset.
  • ToStartOfTzMonth() - Computes the start of the month in tz that contains the instant utcInstant, returning the result as a UTC DateTimeOffset. 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 in tz that contains the instant utcInstant, returning the result as a UTC DateTimeOffset.
  • ToStartOfPreviousTzMonth() - Computes the start of the previous month in tz relative to the instant utcInstant, returning the result as a UTC DateTimeOffset.
  • ToEndOfPreviousTzMonth() - Computes the end of the previous month in tz relative to the instant utcInstant, returning the result as a UTC DateTimeOffset.
  • ToStartOfNextTzMonth() - Computes the start of the next month in tz relative to the instant utcInstant, returning the result as a UTC DateTimeOffset.
  • ToEndOfNextTzMonth() - Computes the end of the next month in tz relative to the instant utcInstant, returning the result as a UTC DateTimeOffset.
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 (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