This documentation is archived and is not being maintained.

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
public static DateTime UtcNow {get;}
public: __property static DateTime get_UtcNow();
public static function get UtcNow() : DateTime;

Property Value

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


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.


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