Soenneker.Extensions.DateTime.Quarter 4.0.1318

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.1318
                    
NuGet\Install-Package Soenneker.Extensions.DateTime.Quarter -Version 4.0.1318
                    
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.1318" />
                    
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.1318" />
                    
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.1318
                    
#r "nuget: Soenneker.Extensions.DateTime.Quarter, 4.0.1318"
                    
#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.1318
                    
#: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.1318
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.DateTime.Quarter&version=4.0.1318
                    
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.1324 0 8/30/2026
4.0.1323 28 8/30/2026
4.0.1322 36 8/30/2026
4.0.1321 36 8/30/2026
4.0.1320 33 8/29/2026
4.0.1319 77 8/29/2026
4.0.1318 40 8/29/2026
4.0.1317 38 8/29/2026
4.0.1316 150 8/25/2026
4.0.1315 305 8/21/2026
4.0.1314 145 8/18/2026
4.0.1313 114 8/18/2026
4.0.1312 227 8/7/2026
4.0.1311 192 7/28/2026
4.0.1310 104 7/28/2026
4.0.1309 109 7/28/2026
4.0.1308 101 7/28/2026
4.0.1307 303 7/17/2026
4.0.1306 166 7/17/2026
4.0.1305 109 7/16/2026
Loading failed

Update dependency Soenneker.Extensions.DateTime to 4.0.1776 (#1690)