语言

SqlFunctions.GetDate 方法

定义

返回当前数据库系统时间戳作为日期/时间值,而不返回数据库时区偏移量。 此值得自运行 SQL Server 实例的计算机的操作系统。

[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)

返回

当前数据库时间戳。

特性

适用于