Soenneker.Extensions.DateTime.Quarter 4.0.1321

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Extensions.DateTime.Quarter --version 4.0.1321
                    
NuGet\Install-Package Soenneker.Extensions.DateTime.Quarter -Version 4.0.1321
                    
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.DateTime.Quarter" Version="4.0.1321" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.DateTime.Quarter" Version="4.0.1321" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.DateTime.Quarter" />
                    
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.DateTime.Quarter --version 4.0.1321
                    
#r "nuget: Soenneker.Extensions.DateTime.Quarter, 4.0.1321"
                    
#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.DateTime.Quarter@4.0.1321
                    
#: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.DateTime.Quarter&version=4.0.1321
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.DateTime.Quarter&version=4.0.1321
                    
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.DateTime.Quarter

A collection of helpful DateTime quarter (year) based extension methods.

Installation

dotnet add package Soenneker.Extensions.DateTime.Quarter

Quick start

using Soenneker.Extensions.DateTime.Quarter;

DateTime dateTime = DateTime.UtcNow;
var result = dateTime.ToStartOfQuarter();

Common operations

  • ToStartOfQuarter() - Adjusts the specified dateTime to the start of its quarter. Returns a System.DateTime representing the first moment of the quarter.
  • ToStartOfNextQuarter() - Returns midnight on the first day of the next calendar quarter.
  • ToStartOfPreviousQuarter() - Returns midnight on the first day of the previous calendar quarter.
  • ToEndOfQuarter() - Adjusts the specified dateTime to the end of its quarter. Returns a System.DateTime representing the last moment of the quarter.
  • ToEndOfNextQuarter() - Returns the final tick of the next calendar quarter.
  • ToEndOfPreviousQuarter() - Returns the final tick of the previous calendar quarter.
  • ToStartOfTzQuarter() - Adjusts the specified UTC utcNow, converted to the time zone specified by tzInfo, to the start of the previous quarter in that time zone. Returns a System.DateTime representing the first moment of the previous quarter in UTC, adjusted for the specified time zone.
  • ToStartOfNextTzQuarter() - Converts the specified UTC utcNow to the time zone specified by tzInfo, and adjusts it to the end of its quarter in that time zone. Returns a System.DateTime representing the last moment of the quarter in UTC, adjusted for the specified time zone.
  • ToStartOfPreviousTzQuarter() - Adjusts the specified UTC utcNow, converted to the time zone specified by tzInfo, to the start of the previous quarter in that time zone. Returns a System.DateTime representing the first moment of the previous quarter in UTC, adjusted for the specified time zone.
  • ToEndOfTzQuarter() - Converts the specified UTC utcNow to the time zone specified by tzInfo, and adjusts it to the end of its quarter in that time zone. Returns a System.DateTime representing the last moment of the quarter in UTC, adjusted for the specified time zone.
  • ToEndOfNextTzQuarter() - Adjusts the specified UTC utcNow, converted to the time zone specified by tzInfo, to the end of the next quarter in that time zone. Returns a System.DateTime representing the last moment of the next quarter in UTC, adjusted for the specified time zone.
  • ToEndOfPreviousTzQuarter() - Adjusts the specified UTC utcNow, converted to the time zone specified by tzInfo, to the end of the previous quarter in that time zone. Returns a System.DateTime representing the last moment of the previous quarter in UTC, adjusted for the specified time zone.
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.DateTime.Quarter:

Package Downloads
Soenneker.Extensions.DateTime.Suite

A collection of all the DateTime precision extension methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.1374 103 10/15/2026
4.0.1373 63 10/15/2026
4.0.1372 95 10/14/2026
4.0.1371 85 10/14/2026
4.0.1370 90 10/14/2026
4.0.1369 70 10/14/2026
4.0.1368 88 10/14/2026
4.0.1362 94 10/13/2026
4.0.1361 87 10/12/2026
4.0.1359 118 10/12/2026
4.0.1358 120 10/12/2026
4.0.1357 125 10/12/2026
4.0.1356 92 10/11/2026
4.0.1354 163 10/11/2026
4.0.1353 204 9/30/2026
4.0.1352 100 9/30/2026
4.0.1351 136 9/25/2026
4.0.1350 109 9/25/2026
4.0.1349 96 9/24/2026
4.0.1321 101 8/30/2026
Loading failed

Update dependency Soenneker.Extensions.DateTime to 4.0.1779 (#1693)