Upgrade your Internet Experience
United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Welcome
Sign in
.NET Framework Developer Center
Home
Library
Learn
Downloads
Support
Community
Forums
Printer Friendly Version
Send
Add Content...
Click to Rate and Give Feedback
Give feedback on this content
Switch View
x
Classic
Lightweight Beta
ScriptFree
Switch View
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
.NET Development
Please Wait
.NET Framework 3.5
Please Wait
.NET Framework Class Library
Please Wait
System Namespace
Please Wait
DateTime Structure
Please Wait
DateTime Properties
Please Wait
Collapse All
Expand All
Members Filter
Include Protected Members
Include Inherited Members
Frameworks Filter
Include .NET Framework Members
Include .NET Compact Framework Members
Include XNA Framework Members
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5
Other versions are also available for the following:
Microsoft Visual Studio 2003/.NET Framework 1.1
Microsoft Visual Studio 2005/.NET Framework 2.0
.NET Framework 3.0
Microsoft Silverlight 3
Microsoft Visual Studio 2010/.NET Framework 4.0
.NET Framework Class Library
DateTime Properties
The
DateTime
type exposes the following members.
Properties
Name
Description
Date
Gets the date component of this instance.
Day
Gets the day of the month represented by this instance.
DayOfWeek
Gets the day of the week represented by this instance.
DayOfYear
Gets the day of the year represented by this instance.
Hour
Gets the hour component of the date represented by this instance.
Kind
Gets a value that indicates whether the time represented by this instance is based on local time, Coordinated Universal Time (UTC), or neither.
Millisecond
Gets the milliseconds component of the date represented by this instance.
Minute
Gets the minute component of the date represented by this instance.
Month
Gets the month component of the date represented by this instance.
Now
Gets a
DateTime
object that is set to the current date and time on this computer, expressed as the local time.
Second
Gets the seconds component of the date represented by this instance.
Ticks
Gets the number of ticks that represent the date and time of this instance.
TimeOfDay
Gets the time of day for this instance.
Today
Gets the current date.
UtcNow
Gets a
DateTime
object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).
Year
Gets the year component of the date represented by this instance.
Top
See Also
Reference
DateTime Structure
System Namespace
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
Community Content
Add new content
Annotations
|
Edit
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement
|
Site Feedback