Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DateTime.TimeOfDay Property

Gets the time of day for this instance.

[Visual Basic]
Public ReadOnly Property TimeOfDay As TimeSpan
[C#]
public TimeSpan TimeOfDay {get;}
[C++]
public: __property TimeSpan get_TimeOfDay();
[JScript]
public function get TimeOfDay() : TimeSpan;

Property Value

A TimeSpan that represents the fraction of the day elapsed since midnight.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

DateTime Structure | DateTime Members | System Namespace | TimeSpan

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft