DateTimeExtensions Class
.NET Standard 2.x
Provides the extension methods for DateTime.
Namespace: PowerScript.Bridge
Assembly: PowerScript.Bridge.dll
Syntax
public static class DateTimeExtensions;
Methods
Name | Return Type | Description |
---|---|---|
DayNumber(this DateTime dateTime) | System.Int16 | Gets the day of the week of a non-empty DateTime value and returns the number of the weekday. |
DayNumber(this DateTime? dateTime) | System.Int16 | Gets the day of the week of a nullable type DateTime value and returns the number of the weekday. |
DaysAfter(this DateTime date1, DateTime? date2) | System.Int32 | Determines the number of days one DateTime occurs after another. |
DaysAfter(this DateTime? date1, DateTime? date2) | System.Int32 | Determines the number of days one DateTime occurs after another. |
RelativeDate(this DateTime date, int? n) | System.DateTime | Obtains the DateTime? that occurs a specified number of days after or before another DateTime. |
RelativeDate(this DateTime? date, int? n) | System.DateTime | Obtains the DateTime that occurs a specified number of days after or before another DateTime. |