SqlFunctions.GetDate Method

Definition

Returns the current database system timestamp as a datetime value without the database time zone offset. 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", "GETDATE")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public static Nullable<DateTime> GetDate ();
static member GetDate : unit -> Nullable<DateTime>
Public Shared Function GetDate () As Nullable(Of DateTime)

Returns

The current database timestamp.

Attributes

Applies to