Share via


SqlFunctions.GetUtcDate Method

Definition

Returns the current database system timestamp as a datetime value. The database time zone offset is not included. This value represents the current UTC time (Coordinated Universal Time). This value is derived from the operating system of the computer on which the instance of SQL Server is running.

[System.Data.Entity.DbFunction("SqlServer", "GETUTCDATE")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public static Nullable<DateTime> GetUtcDate ();
static member GetUtcDate : unit -> Nullable<DateTime>
Public Shared Function GetUtcDate () As Nullable(Of DateTime)

Returns

The current database UTC timestamp.

Attributes

Applies to