Soenneker.Extensions.DateTimeOffsets.Months 4.0.113

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.113
                    
NuGet\Install-Package Soenneker.Extensions.DateTimeOffsets.Months -Version 4.0.113
                    
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.113" />
                    
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.113" />
                    
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.113
                    
#r "nuget: Soenneker.Extensions.DateTimeOffsets.Months, 4.0.113"
                    
#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.113
                    
#: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.113
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.DateTimeOffsets.Months&version=4.0.113
                    
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 (1)

Showing the top 1 NuGet packages that depend on Soenneker.Extensions.DateTimeOffsets.Months:

Package Downloads
Soenneker.Extensions.DateTimeOffsets.Suite

A collection of all of the helpful DateTimeOffset extension methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.120 172 9/1/2026
4.0.119 109 8/31/2026
4.0.118 115 8/31/2026
4.0.117 116 8/31/2026
4.0.116 124 8/30/2026
4.0.115 207 8/30/2026
4.0.114 207 8/29/2026
4.0.113 86 8/29/2026
4.0.112 335 8/26/2026
4.0.111 131 8/26/2026
4.0.110 114 8/25/2026
4.0.109 207 8/22/2026
4.0.108 364 8/21/2026
4.0.107 321 8/19/2026
4.0.106 309 8/18/2026
4.0.105 185 8/18/2026
4.0.104 341 8/12/2026
4.0.103 295 8/8/2026
4.0.102 162 8/7/2026
4.0.101 104 8/7/2026
Loading failed

Improve README documentation