Soenneker.Extensions.DateTimeOffsets.DayOfWeeks 4.0.112

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

A collection of helpful DateTimeOffset DayOfWeek extension methods.

Installation

dotnet add package Soenneker.Extensions.DateTimeOffsets.DayOfWeeks

Quick start

using Soenneker.Extensions.DateTimeOffsets.DayOfWeeks;

DateTimeOffset dateTimeOffset = DateTimeOffset.UtcNow;
var result = dateTimeOffset.ToPreviousDayOfWeek(dayOfWeek);

Common operations

  • ToPreviousDayOfWeek() - Returns the previous occurrence of dayOfWeek relative to dateTimeOffset. The result is always strictly in the past (never the same day).
  • ToNextDayOfWeek() - Returns the next occurrence of dayOfWeek relative to dateTimeOffset. The result is always strictly in the future (never the same day).
  • ToStartOfPreviousDayOfWeek() - Returns the start of day (00:00) for the previous occurrence of dayOfWeek relative to dateTimeOffset.
  • ToStartOfNextDayOfWeek() - Returns the start of day (00:00) for the next occurrence of dayOfWeek relative to dateTimeOffset.
  • ToEndOfPreviousDayOfWeek() - Returns the end of day (one tick before next day) for the previous occurrence of dayOfWeek relative to dateTimeOffset.
  • ToEndOfNextDayOfWeek() - Returns the end of day (one tick before next day) for the next occurrence of dayOfWeek relative to dateTimeOffset.
  • ToStartOfPreviousTzDayOfWeek() - Computes the UTC instant corresponding to the start of the previous occurrence of dayOfWeek in tz, relative to the instant utcInstant.
  • ToStartOfNextTzDayOfWeek() - Computes the UTC instant corresponding to the start of the next occurrence of dayOfWeek in tz, relative to the instant utcInstant.
  • ToEndOfPreviousTzDayOfWeek() - Computes the UTC instant corresponding to the end of the previous occurrence of dayOfWeek in tz, relative to the instant utcInstant.
  • ToEndOfNextTzDayOfWeek() - Computes the UTC instant corresponding to the end of the next occurrence of dayOfWeek in tz, relative to the instant utcInstant.
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.DayOfWeeks:

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.115 22 8/30/2026
4.0.114 98 8/30/2026
4.0.113 47 8/29/2026
4.0.112 40 8/29/2026
4.0.111 41 8/29/2026
4.0.110 215 8/26/2026
4.0.109 121 8/26/2026
4.0.108 213 8/22/2026
4.0.107 165 8/21/2026
4.0.106 642 8/19/2026
4.0.105 147 8/18/2026
4.0.104 183 8/18/2026
4.0.103 110 8/18/2026
4.0.102 236 8/13/2026
4.0.101 244 8/9/2026
4.0.100 324 8/7/2026
4.0.99 162 8/7/2026
4.0.98 364 7/30/2026
4.0.97 219 7/29/2026
4.0.96 258 7/29/2026
Loading failed

Improve XML documentation