Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

DateTime.UtcNow Property

Gets a DateTime that is the current local date and time on this computer expressed as the coordinated universal time (UTC).

[Visual Basic]
Public Shared ReadOnly Property UtcNow As DateTime
[C#]
public static DateTime UtcNow {get;}
[C++]
public: __property static DateTime get_UtcNow();
[JScript]
public static function get UtcNow() : DateTime;

Property Value

A DateTime whose value is the current UTC date and time.

Remarks

The resolution of this property depends on the system timer.

System Approximate Resolution
Windows NT 3.5 and later 10 milliseconds
Windows 98 55 milliseconds

.NET Compact Framework Platform Note:  In Windows CE .NET, time is specific only to the second. You can get a more precise time span measurement, for example, in milliseconds, by using the TickCount property.

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 | GetUtcOffset

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.