Methods

AddAdds the value of the specified TimeSpan to the value of this instance.
AddDaysAdds the specified number of days to the value of this instance.
AddHoursAdds the specified number of hours to the value of this instance.
AddMillisecondsAdds the specified number of milliseconds to the value of this instance.
AddMinutesAdds the specified number of minutes to the value of this instance.
AddMonthsAdds the specified number of months to the value of this instance.
AddSecondsAdds the specified number of seconds to the value of this instance.
AddTicksAdds the specified number of ticks to the value of this instance.
AddYearsAdds the specified number of years to the value of this instance.
CompareCompares two instances of DateTime and returns an indication of their relative values.
CompareToCompares this instance to a specified object and returns an indication of their relative values.
DaysInMonthReturns the number of days in the specified month of the specified year.
EqualsOverloaded. Overridden. Returns a value indicating whether an instance of DateTime is equal to a specified object.
FromFileTimeReturns a DateTime equivalent to the specified operating system file timestamp. Returns an unsigned 8-byte value representing the date and time as the number of 100-nanosecond intervals that have elapsed since 1/1/1601 12:00 AM.
FromOADateReturns a DateTime equivalent to the specified OLE Automation Date.
GetDateTimeFormatsOverloaded. Converts the value of this instance to allthe string representations supported by the standard DateTime format specifiers.
GetHashCodeOverridden. Returns the hash code for this instance.
GetTypeGets the Type of the current instance.
GetTypeCodeReturns the TypeCode for value type DateTime.
IsLeapYearReturns an indication whether the specified year is a leap year.
ParseOverloaded. Converts the specified string representation of a date and time to its DateTime equivalent.
ParseExactOverloaded. Converts the specified string representation of a date and time to its DateTime equivalent. The format of the string representation must match a specified format exactly.
SubtractOverloaded. Subtracts the specified time or duration from this instance.
ToFileTimeConverts the value of this instance to the format of the local system file time.
ToLocalTimeConverts the current coordinated universal time (UTC) to local time. Consirders the DateTime value a UTC value as converts it to a local time.
ToLongDateStringConverts the value of this instance to its equivalent long date string representation.
ToLondTimeStringConverts the value of this instance to its equivalent long time string representation.
ToOADateConverts the value of this instance to the equivalent OLE Automation date. Converts to an OLE Automation-compatible value. This is a double value similar to the Date values used in VB 6.0.
ToShortDateStringConverts the value of this instance to its equivalent short time string representation.
ToStringOverloaded. Overridden. Converts the value of this instance to its equivalent string representation.
ToUniversalTimeConverts the current local time to coordinated universal time (UTC). This considers the DateTime value to be a local time and converts it to Coordinated Universal Time (UTC).


© 2020 Better Solutions Limited. All Rights Reserved. © 2020 Better Solutions Limited TopPrevNext