Extend.NET.DateTime 2024.9.9.1338

There is a newer version of this package available.
See the version list below for details.
dotnet add package Extend.NET.DateTime --version 2024.9.9.1338                
NuGet\Install-Package Extend.NET.DateTime -Version 2024.9.9.1338                
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="Extend.NET.DateTime" Version="2024.9.9.1338" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Extend.NET.DateTime --version 2024.9.9.1338                
#r "nuget: Extend.NET.DateTime, 2024.9.9.1338"                
#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.
// Install Extend.NET.DateTime as a Cake Addin
#addin nuget:?package=Extend.NET.DateTime&version=2024.9.9.1338

// Install Extend.NET.DateTime as a Cake Tool
#tool nuget:?package=Extend.NET.DateTime&version=2024.9.9.1338                

Extend.NET.DateTime

Last Updated: 2024-09-09 13:38:14

📖 Overview

Extend.NET.DateTime is part of the Extend.NET suite, providing a collection of powerful and easy-to-use extension methods for DateTime types in .NET applications. These extensions aim to simplify common tasks and enhance developer productivity.

🧰 Extension Methods

AddBusinessDays

Adds the specified number of business days to the given date.

AddWeekdays

Adds the specified number of weekdays (Monday to Friday) to the given date.

AddWorkdays

Adds a specified number of workdays to the given date.

EndOfMonth

Returns the last day of the month for the given date.

EndOfWeek

Returns the last day of the week for the given date.

GetAge

Calculates the age based on the given date and the current date.

GetDaysBetween

Calculates the number of days between two dates.

GetDaysInMonth

Gets the number of days in the month of the given date.

GetElapsedTime

Calculates the elapsed time between the given date and the current date and time.

GetFirstDayOfNextMonth

Gets the first day of the next month from the given date.

GetFirstDayOfYear

Returns the first day of the year for the given date.

GetLastDayOfPreviousMonth

Gets the last day of the previous month from the given date.

GetLastDayOfYear

Returns the last day of the year for the given date.

GetMonthName

Gets the full name of the month for the given date.

GetNextOccurrence

Gets the next occurrence of the specified day of the week after the given date.

GetNextWeekday

Gets the next weekday (Monday to Friday) from the given date.

GetNextWorkday

Gets the next workday (Monday through Friday) from the given date.

GetQuarter

Gets the quarter of the year for the given date.

GetWeekOfYear

Gets the week of the year for the given date.

IsBetween

Determines whether the given date is between two specified dates.

IsBusinessDay

Determines whether the given date is a business day (Monday through Friday).

IsDateEqual

Compares two DateTime objects for date equality, ignoring the time component.

IsInFuture

Determines whether the given date is in the future.

IsInPast

Determines whether the given date is in the past.

IsLastDayOfMonth

Determines whether the given date is the last day of its month.

IsLeapYear

Determines whether the year of the given date is a leap year.

IsWeekend

Determines whether the given date falls on a weekend.

StartOfMonth

Returns the first day of the month for the given date.

StartOfWeek

Returns the first day of the week for the given date.

ToIso8601String

Converts the given DateTime to an ISO 8601 formatted string.

ToOrdinalString

Converts the day of the month to its ordinal string representation.

ToRelativeTime

Converts the given date to a relative time string (e.g., "2 days ago", "in 3 hours").

ToRfc2822String

Converts the given DateTime to an RFC 2822 formatted string.

ToShortDateString

Converts the given DateTime to a short date string in the format "yyyy-MM-dd".

ToUnixTimestamp

Converts the given DateTime to a Unix timestamp (seconds since Unix epoch).

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2024.9.9.1414 104 9/9/2024
2024.9.9.1402 102 9/9/2024
2024.9.9.1338 95 9/9/2024
2024.9.9.1335 93 9/9/2024
2024.9.9.1320 101 9/9/2024
2024.9.9.1225 94 9/9/2024
2024.9.9.1052 98 9/9/2024
2024.9.9.1044 103 9/9/2024
2024.9.9.1004 96 9/9/2024
2024.9.8.1721 87 9/8/2024