Date Methods |
The Date type exposes the following members.
| Name | Description | |
|---|---|---|
| AddMonths(Int32) | Adds a number of months to this date. | |
| AddMonths(Int32, Int32, Int32, Int32) | Adds a number of months to a given date. | |
| AddYears | Adds a number of years to this date. | |
| CompareTo | Compares the current date with another. | |
| DaysInMonth | Returns the number of days in the month given by a year and month. | |
| Deconstruct(Int32, Int32) | Extracts the year and month in a single call. | |
| Deconstruct(Int32, Int32, Int32) | Extracts all components from a date in a single call. | |
| Equals(Date) | Compares this date to another date. | |
| Equals(Object) | Compares this date to another object for equality. (Overrides ValueTypeEquals(Object)) | |
| FromYear | Creates a Date instance for Jan 1st of the given year. | |
| GetHashCode | Returns a hash code for this date. (Overrides ValueTypeGetHashCode) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| IsLeap | Checks if the date belongs to a leap year. | |
| IsLeapYear | Checks if a given year is a leap year. | |
| Max | Gets the maximum of two dates. | |
| Min | Gets the minimum of two dates. | |
| RollEOM | Rolls this date up to the end of month. | |
| RollIMM | Rolls this date up to the third Wednesday of the month. | |
| ToString | Gets a textual representation of this date. (Overrides ValueTypeToString) | |
| ToString(String, IFormatProvider) | Gets a textual representation of this date. | |
| TruncateDay | Change the day of a date to the first day in the month. |