Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DateTime Properties

The DateTime type exposes the following members.

  Name Description
Public property Supported by the XNA Framework Supported by Portable Class Library Date Gets the date component of this instance.
Public property Supported by the XNA Framework Supported by Portable Class Library Day Gets the day of the month represented by this instance.
Public property Supported by the XNA Framework Supported by Portable Class Library DayOfWeek Gets the day of the week represented by this instance.
Public property Supported by the XNA Framework Supported by Portable Class Library DayOfYear Gets the day of the year represented by this instance.
Public property Supported by the XNA Framework Supported by Portable Class Library Hour Gets the hour component of the date represented by this instance.
Public property Supported by the XNA Framework Supported by Portable Class Library Kind Gets a value that indicates whether the time represented by this instance is based on local time, Coordinated Universal Time (UTC), or neither.
Public property Supported by the XNA Framework Supported by Portable Class Library Millisecond Gets the milliseconds component of the date represented by this instance.
Public property Supported by the XNA Framework Supported by Portable Class Library Minute Gets the minute component of the date represented by this instance.
Public property Supported by the XNA Framework Supported by Portable Class Library Month Gets the month component of the date represented by this instance.
Public property Static member Supported by the XNA Framework Supported by Portable Class Library Now Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
Public property Supported by the XNA Framework Supported by Portable Class Library Second Gets the seconds component of the date represented by this instance.
Public property Supported by the XNA Framework Supported by Portable Class Library Ticks Gets the number of ticks that represent the date and time of this instance.
Public property Supported by the XNA Framework Supported by Portable Class Library TimeOfDay Gets the time of day for this instance.
Public property Static member Supported by the XNA Framework Supported by Portable Class Library Today Gets the current date.
Public property Static member Supported by the XNA Framework Supported by Portable Class Library UtcNow Gets a DateTime object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).
Public property Supported by the XNA Framework Supported by Portable Class Library Year Gets the year component of the date represented by this instance.
Top
Show:
© 2015 Microsoft