TsadriuUtilities.DateTime
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TsadriuUtilities.DateTime --version 1.0.0
NuGet\Install-Package TsadriuUtilities.DateTime -Version 1.0.0
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="TsadriuUtilities.DateTime" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TsadriuUtilities.DateTime --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TsadriuUtilities.DateTime, 1.0.0"
#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 TsadriuUtilities.DateTime as a Cake Addin #addin nuget:?package=TsadriuUtilities.DateTime&version=1.0.0 // Install TsadriuUtilities.DateTime as a Cake Tool #tool nuget:?package=TsadriuUtilities.DateTime&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TsadriuUtilities.DateTime
A small package that helps on manipulation and managing DateTime types.
TsadriuUtilities.DateTime is a small library that helps on manipulationg and managing DateTime objects.
> Features <
DateTimeHelper:
- ToDateTime(string date, CultureInfo cultureInfo, DateTimeStyles? dateTimeStyle, params string[] formats) + 1 overload:
- This method attempts to convert a date from a
string
to a type ofDateTime
.
- This method attempts to convert a date from a
- ToNullableDateTime(string date, CultureInfo cultureInfo, DateTimeStyles? dateTimeStyle, params string[] formats) + 1 overload:
- This method attempts to convert a date from a
string
to a nullableDateTime
. If the parsing fails, it returns a null. If it succeeds, it returns a DateTime object.
- This method attempts to convert a date from a
- GetLastDayOfMonth(DateTime date):
- Parses the
date
to return with the last day of the month.
- Parses the
- SetDay(DateTime date, int day):
- Sets the
day
in thedate
. In case theday
is higher than the month's max days, it will be clamped.
- Sets the
- SetMonth(DateTime date, int month):
- Sets the
month
in thedate
. In case themonth
is higher than the year's maximum months, it will be clamped.
- Sets the
- SetYear(DateTime date, int year):
- Sets the
year
in thedate
.
- Sets the
- RemoveDays(DateTime date, int days):
- Removes a specified number of
days
fromdate
.
- Removes a specified number of
- RemoveMonths(DateTime date, int months):
- Removes a specified number of
months
fromdate
.
- Removes a specified number of
- RemoveYears(DateTime date, int years):
- Removes a specified number of
years
fromdate
.
- Removes a specified number of
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on TsadriuUtilities.DateTime:
Package | Downloads |
---|---|
TsadriuUtilities.Csv
TsadriuUtilities.Csv is a library that helps on dealing with **CSV** files, to make it easier and save a little bit of time. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release.