Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System Namespace
DateTime Structure
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
DateTime Properties

The DateTime type exposes the following members.

  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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker