The methods of System.DateTime are listed below. For a list of all members, see the DateTime Members list.
See Also: Inherited members from System.ValueType
Add(TimeSpan)Adds the value of a specified TimeSpan instance to the current instance. | ||
AddDays(double)Adds a specified number of days to the value of the current instance. | ||
AddHours(double)Adds a specified number of hours to the value of the current instance. | ||
AddMilliseconds(double)Adds a specified number of milliseconds to the value of the current instance. | ||
AddMinutes(double)Adds a specified number of minutes to the value of the current instance. | ||
AddMonths(int)Adds a specified number of months to the value of the current instance. | ||
AddSeconds(double)Adds a specified number of seconds to the value of the current instance. | ||
AddTicks(long)Adds a specified number of ticks to the value of the current instance. | ||
AddYears(int)Adds a specified number of years to the value of the current instance. | ||
static | Compare(DateTime, DateTime)Returns the sort order of the two specified instances of DateTime . | |
CompareTo(DateTime)Returns the sort order of the current instance compared to the specified DateTime . | ||
CompareTo(object)Returns the sort order of the current instance compared to the specified object . | ||
static | DaysInMonth(int, int)Returns the number of days in a specified month of a specified year. | |
Equals(DateTime)Returns a bool indicating whether the current instance is equal to the specified DateTime. | ||
override | Equals(object)Returns a bool indicating whether the current instance is equal to a specified object. | |
static | Equals(DateTime, DateTime)Returns a bool indicating whether two specified instances of DateTime are equal. | |
static | FromBinary(long)Documentation for this section has not yet been entered. | |
static | FromFileTime(long)Documentation for this section has not yet been entered. | |
static | FromFileTimeUtc(long)Documentation for this section has not yet been entered. | |
static | FromOADate(double)Documentation for this section has not yet been entered. | |
GetDateTimeFormats()Documentation for this section has not yet been entered. | ||
GetDateTimeFormats(char)Documentation for this section has not yet been entered. | ||
GetDateTimeFormats(IFormatProvider)Documentation for this section has not yet been entered. | ||
GetDateTimeFormats(char, IFormatProvider)Documentation for this section has not yet been entered. | ||
override | GetHashCode()Generates a hash code for the current instance. | |
GetTypeCode()Documentation for this section has not yet been entered. | ||
IsDaylightSavingTime()Documentation for this section has not yet been entered. | ||
static | IsLeapYear(int)Returns a bool value indicating whether a specified year is a leap year. | |
static | Parse(string)Returns the specified string converted to a DateTime value. | |
static | Parse(string, IFormatProvider)Returns the specified string converted to a DateTime value. | |
static | Parse(string, IFormatProvider, System.Globalization.DateTimeStyles)Returns the specified string converted to a DateTime value. | |
static | ParseExact(string, string, IFormatProvider)Converts the specified string representation of a date and time to its DateTime equivalent using a specified format and IFormatProvider . | |
static | ParseExact(string, string, IFormatProvider, System.Globalization.DateTimeStyles)Converts the string representation of a date and time to its DateTime equivalent using a specified style, the expected format, and culture-specific format information. | |
static | ParseExact(string, string[], IFormatProvider, System.Globalization.DateTimeStyles)Converts the string representation of a date and time to its DateTime equivalent using a specified style, an array of expected formats, and culture-specific format information. | |
static | SpecifyKind(DateTime, DateTimeKind)Documentation for this section has not yet been entered. | |
Subtract(DateTime)Subtracts a specified date and time from the current instance. | ||
Subtract(TimeSpan)Subtracts a specified TimeSpan from the current instance. | ||
ToBinary()Documentation for this section has not yet been entered. | ||
ToFileTime()Documentation for this section has not yet been entered. | ||
ToFileTimeUtc()Documentation for this section has not yet been entered. | ||
ToLocalTime()Converts the universal time coordinate (UTC) time value in the current instance to local time. | ||
ToLongDateString()Converts the date denoted by the current instance to its equivalent long date string representation. | ||
ToLongTimeString()Converts the time denoted by the current instance to its equivalent long time string representation. | ||
ToOADate()Documentation for this section has not yet been entered. | ||
ToShortDateString()Converts the date denoted by the current instance to its equivalent short date string representation. | ||
ToShortTimeString()Converts the time denoted by this instance to its equivalent short time string representation. | ||
override | ToString()Returns a string representation of the value of the current instance. | |
ToString(IFormatProvider)Returns a string representation of the value of the current instance. | ||
ToString(string)Returns a string representation of the value of the current instance. | ||
ToString(string, IFormatProvider)Returns a string representation of the value of the current instance. | ||
ToUniversalTime()Converts the current DateTime value to coordinated universal time (UTC). | ||
static | TryParse(string, out DateTime)Documentation for this section has not yet been entered. | |
static | TryParse(string, IFormatProvider, System.Globalization.DateTimeStyles, out DateTime)Documentation for this section has not yet been entered. | |
static | TryParseExact(string, string, IFormatProvider, System.Globalization.DateTimeStyles, out DateTime)Documentation for this section has not yet been entered. | |
static | TryParseExact(string, string[], IFormatProvider, System.Globalization.DateTimeStyles, out DateTime)Documentation for this section has not yet been entered. | |