System.DateTime

This class resides in mscorlib, Ver=2000.14.1812.10, SN=03689116d3a4ae33

Hierarchy

Object
    + ValueType
         + DateTime -- IComparable -- IFormattable -- IConvertible

Declarations

[C#] public struct DateTime : ValueType, IComparable, IFormattable, IConvertible;
[Visual Basic] Public Struct DateTime Inherits ValueType, IComparable, IFormattable, IConvertible
[MC++] public: __value struct DateTime : ValueType, IComparable, IFormattable, IConvertible;

Constructors

[S] .cctor ()
DateTime (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Calendar calendar)
DateTime (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond)
DateTime (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond, Calendar calendar)
DateTime (Int32 year, Int32 month, Int32 day)
DateTime (Int64 ticks)
DateTime (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second)
DateTime (Int32 year, Int32 month, Int32 day, Calendar calendar)

Methods

DateTime Add (Double value, Int32 scale)
DateTime Add (TimeSpan value)
DateTime AddDays (Double value)
DateTime AddHours (Double value)
DateTime AddMilliseconds (Double value)
DateTime AddMinutes (Double value)
DateTime AddMonths (Int32 months)
DateTime AddSeconds (Double value)
DateTime AddTicks (Int64 value)
DateTime AddYears (Int32 value)
[S] Int32 Compare (DateTime t1, DateTime t2)
Int32 CompareTo (Object value)
[S] Int64 DateToTicks (Int32 year, Int32 month, Int32 day)
[S] Int32 DaysInMonth (Int32 year, Int32 month)
[S] Int64 DoubleDateToTicks (Double value)
Boolean Equals (Object value)
[S] Boolean Equals (DateTime t1, DateTime t2)
[I] Void Finalize ()
String Format (String format, IServiceObjectProvider sp)
[S] DateTime FromFileTime (Int64 fileTime)
[S] DateTime FromOADate (Double d)
[S] DateTime FromString (String s)
DateTime get_Date ()
Int32 get_Day ()
Int32 get_DayOfWeek ()
Int32 get_DayOfYear ()
Int32 get_Hour ()
Int32 get_Millisecond ()
Int32 get_Minute ()
Int32 get_Month ()
[S] DateTime get_Now ()
Int32 get_Second ()
Int64 get_Ticks ()
TimeSpan get_TimeOfDay ()
[S] DateTime get_Today ()
Int32 get_Year ()
[Attr] String[] GetAllDateTimes ()
[Attr] String[] GetAllDateTimes (Char format, IServiceObjectProvider isop)
[Attr] String[] GetAllDateTimes (Char format)
[Attr] String[] GetAllDateTimes (IServiceObjectProvider isop)
Int32 GetDatePart (Int32 part)
String[] GetDateTimeFormats (Char format, IServiceObjectProvider isop)
String[] GetDateTimeFormats (IServiceObjectProvider isop)
String[] GetDateTimeFormats ()
String[] GetDateTimeFormats (Char format)
Int32 GetHashCode ()
[S] Int64 GetSystemFileTime ()
[I] Type GetType ()
TypeCode GetTypeCode ()
[S] Boolean IsLeapYear (Int32 year)
[I] Object MemberwiseClone ()
[S] DateTime op_Addition (DateTime d, TimeSpan t)
[S] Boolean op_Equality (DateTime d1, DateTime d2)
[S] Boolean op_GreaterThan (DateTime t1, DateTime t2)
[S] Boolean op_GreaterThanOrEqual (DateTime t1, DateTime t2)
[S] Boolean op_Inequality (DateTime d1, DateTime d2)
[S] Boolean op_LessThan (DateTime t1, DateTime t2)
[S] Boolean op_LessThanOrEqual (DateTime t1, DateTime t2)
[S] DateTime op_Subtraction (DateTime d, TimeSpan t)
[S] TimeSpan op_Subtraction (DateTime d1, DateTime d2)
[S] DateTime Parse (String s)
[S] DateTime Parse (String s, DateTimeFormatInfo dtfi)
[S] DateTime ParseExact (String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)
[S] DateTime ParseExact (String s, String format, DateTimeFormatInfo dtfi)
[S] Double StringToOADate (String s, Int32 lcid)
TimeSpan Subtract (DateTime value)
DateTime Subtract (TimeSpan value)
[S] Int64 TicksToLocal (Int64 ticks)
[S] Double TicksToOADate (Int64 value)
[S] Int64 TicksToUniversal (Int64 ticks)
[S] Int64 TimeToTicks (Int32 hour, Int32 minute, Int32 second)
Boolean ToBoolean ()
Byte ToByte ()
Char ToChar ()
DateTime ToDateTime ()
Decimal ToDecimal ()
Double ToDouble ()
Int64 ToFileTime ()
Int16 ToInt16 ()
Int32 ToInt32 ()
Int64 ToInt64 ()
DateTime ToLocalTime ()
String ToLongDateString ()
String ToLongTimeString ()
Double ToOADate ()
SByte ToSByte ()
String ToShortDateString ()
String ToShortTimeString ()
Single ToSingle ()
String ToString ()
[S] String ToString (DateTime dt)
Object ToType (Type type)
[Attr]UInt16 ToUInt16 ()
[Attr]UInt32 ToUInt32 ()
[Attr]UInt64 ToUInt64 ()
DateTime ToUniversalTime ()

Properties

DateTime Date
Int32 Day
Int32 DayOfWeek
Int32 DayOfYear
Int32 Hour
Int32 Millisecond
Int32 Minute
Int32 Month
DateTime Now
Int32 Second
Int64 Ticks
TimeSpan TimeOfDay
DateTime Today
Int32 Year

Fields

[S] Int32 DatePartDay = 3;
[S] Int32 DatePartDayOfYear = 1;
[S] Int32 DatePartMonth = 2;
[S] Int32 DatePartYear = 0;
[S] Int32 DaysPer100Years = 36524;
[S] Int32 DaysPer400Years = 146097;
[S] Int32 DaysPer4Years = 1461;
[S] Int32 DaysPerYear = 365;
[S] Int32 DaysTo10000 = 3652059;
[S] Int32 DaysTo1601 = 584388;
[S] Int32 DaysTo1899 = 693593;
[S] Int32 DaysToMonth365
[S] Int32 DaysToMonth366
[S] Int64 DoubleDateOffset = 599264352000000000;
[S] DateTime Empty
[S] Int64 FileTimeOffset = 504911232000000000;
[S] Int64 MaxMillis = 315537897600000;
[S] Int64 MaxTicks = 3155378975999999999;
[S] DateTime MaxValue
[S] Int32 MillisPerDay = 86400000;
[S] Int32 MillisPerHour = 3600000;
[S] Int32 MillisPerMinute = 60000;
[S] Int32 MillisPerSecond = 1000;
[S] Int64 MinTicks = 0;
[S] DateTime MinValue
[S] Double OADateMaxAsDouble = 2958466;
[S] Double OADateMinAsDouble = -657435;
[S] Int64 OADateMinAsTicks = 31241376000000000;
Int64 ticks
[S] Int64 TicksPerDay = 864000000000;
[S] Int64 TicksPerHour = 36000000000;
[S] Int64 TicksPerMillisecond = 10000;
[S] Int64 TicksPerMinute = 600000000;
[S] Int64 TicksPerSecond = 10000000;