DateTimeExtensions Class
| Namespace | Skybrud.Essentials.Time.Extensions |
|---|---|
| Assembly | Skybrud.Essentials.dll |
| Visibility | Public |
| Keywords | Static |
| Inheritance | Object |
Static class with various extension methods for DateTime .
public static class DateTimeExtensions { }
Methods
|
GetAbbreviatedDayName(DateTime)
(static)
Gets the abbreviated English name of the day. |
|
GetAbbreviatedLocalDayName(DateTime)
(static)
Gets the abbreviated name of the day according to the current culture. |
|
Gets the name of the day according to |
|
Gets the abbreviated name of the month according to the current culture. |
|
Gets the abbreviated name of the month according to |
|
GetAbbreviatedMonthName(DateTime)
(static)
Gets the abbreviated English name of the month. |
|
GetAge(DateTime)
(static)
Gets the current age, from the specified date of birth. |
|
GetAge(DateTime, DateTime)
(static)
Gets the current age, from the specified date of birth. The age is calculated based on |
|
GetDayName(DateTime)
(static)
Gets the English name of the day. |
|
GetDayNumberAndSuffix(DateTime)
(static)
Gets the day of the month along with the English ordinal suffix based on the specified |
|
GetDaySuffix(DateTime)
(static)
Gets the English ordinal suffix of the day based on the specified |
|
GetElapsedSeconds(DateTime)
(static)
Gets the amount elapsed seconds since the specified |
|
GetFirstDayOfMonth(DateTime)
(static)
Gets the first day of the month of the specified |
|
GetFirstDayOfWeek(DateTime)
(static)
Gets the first day of the week of the specified |
|
Gets the first day of the week of the specified |
|
GetIso8601WeekNumber(DateTime)
(static)
Gets the week number of the specified |
|
GetLastDayOfMonth(DateTime)
(static)
Gets the last day of the month of the specified |
|
GetLastDayOfWeek(DateTime)
(static)
Gets the last day of the week of the specified |
|
Gets the last day of the week of the specified |
|
GetLocalDayName(DateTime)
(static)
Gets the name of the day according to the current culture. |
|
Gets the name of the day according to |
|
GetLocalMonthName(DateTime)
(static)
Gets the name of the month according to the current culture. |
|
Gets the name of the month according to |
|
GetMonthName(DateTime)
(static)
Gets the English name of the month. |
|
IsDateWithinLastDays(DateTime, int)
(static)
Gets whether |
|
IsLeapYear(DateTime)
(static)
Gets whether the specified |
|
IsLeapYear(int)
(static)
Gets whether the specified year is a leap year. |
|
IsWeekday(DateTime)
(static)
Gets whether the specified |
|
IsWeekend(DateTime)
(static)
Gets whether the specified |