.NET Framework Class Library
DateTime Properties

The DateTime type exposes the following members.

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkDateGets the date component of this instance.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkDayGets the day of the month represented by this instance.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkDayOfWeekGets the day of the week represented by this instance.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkDayOfYearGets the day of the year represented by this instance.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkHourGets the hour component of the date represented by this instance.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkKindGets a value that indicates whether the time represented by this instance is based on local time, Coordinated Universal Time (UTC), or neither.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkMillisecondGets the milliseconds component of the date represented by this instance.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkMinuteGets the minute component of the date represented by this instance.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkMonthGets the month component of the date represented by this instance.
Public propertyStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkNowGets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkSecondGets the seconds component of the date represented by this instance.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkTicksGets the number of ticks that represent the date and time of this instance.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkTimeOfDayGets the time of day for this instance.
Public propertyStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkTodayGets the current date.
Public propertyStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUtcNowGets a DateTime object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkYearGets the year component of the date represented by this instance.
Top
See Also

Reference

Tags :


Page view tracker