次の方法で共有


SqlCeFunctions.DateDiff メソッド

定義

オーバーロード

DateDiff(String, Nullable<DateTime>, Nullable<DateTime>)

指定された開始日から終了日までの間隔を、指定された日付構成要素の単位で返します。

DateDiff(String, Nullable<DateTime>, String)

指定された開始日から終了日までの間隔を、指定された日付構成要素の単位で返します。

DateDiff(String, String, Nullable<DateTime>)

指定された開始日から終了日までの間隔を、指定された日付構成要素の単位で返します。

DateDiff(String, String, String)

指定された開始日から終了日までの間隔を、指定された日付構成要素の単位で返します。

DateDiff(String, Nullable<DateTime>, Nullable<DateTime>)

指定された開始日から終了日までの間隔を、指定された日付構成要素の単位で返します。

[System.Data.Entity.DbFunction("SqlServerCe", "DATEDIFF")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="startDate")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="datePartArg")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="endDate")]
public static Nullable<int> DateDiff (string datePartArg, Nullable<DateTime> startDate, Nullable<DateTime> endDate);
static member DateDiff : string * Nullable<DateTime> * Nullable<DateTime> -> Nullable<int>
Public Shared Function DateDiff (datePartArg As String, startDate As Nullable(Of DateTime), endDate As Nullable(Of DateTime)) As Nullable(Of Integer)

パラメーター

datePartArg
String

時間間隔数の差を計算する日付構成要素。

startDate
Nullable<DateTime>

1 つ目の日付。

endDate
Nullable<DateTime>

2 つ目の日付。

戻り値

2 つの日付の間に含まれる時間間隔の数。

属性

適用対象

DateDiff(String, Nullable<DateTime>, String)

指定された開始日から終了日までの間隔を、指定された日付構成要素の単位で返します。

[System.Data.Entity.DbFunction("SqlServerCe", "DATEDIFF")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="datePartArg")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="endDate")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="startDate")]
public static Nullable<int> DateDiff (string datePartArg, Nullable<DateTime> startDate, string endDate);
static member DateDiff : string * Nullable<DateTime> * string -> Nullable<int>
Public Shared Function DateDiff (datePartArg As String, startDate As Nullable(Of DateTime), endDate As String) As Nullable(Of Integer)

パラメーター

datePartArg
String

時間間隔数の差を計算する日付構成要素。

startDate
Nullable<DateTime>

1 つ目の日付。

endDate
String

2 つ目の日付。

戻り値

2 つの日付の間に含まれる時間間隔の数。

属性

適用対象

DateDiff(String, String, Nullable<DateTime>)

指定された開始日から終了日までの間隔を、指定された日付構成要素の単位で返します。

[System.Data.Entity.DbFunction("SqlServerCe", "DATEDIFF")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="endDate")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="datePartArg")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="startDate")]
public static Nullable<int> DateDiff (string datePartArg, string startDate, Nullable<DateTime> endDate);
static member DateDiff : string * string * Nullable<DateTime> -> Nullable<int>
Public Shared Function DateDiff (datePartArg As String, startDate As String, endDate As Nullable(Of DateTime)) As Nullable(Of Integer)

パラメーター

datePartArg
String

時間間隔数の差を計算する日付構成要素。

startDate
String

1 つ目の日付。

endDate
Nullable<DateTime>

2 つ目の日付。

戻り値

2 つの日付の間に含まれる時間間隔の数。

属性

適用対象

DateDiff(String, String, String)

指定された開始日から終了日までの間隔を、指定された日付構成要素の単位で返します。

[System.Data.Entity.DbFunction("SqlServerCe", "DATEDIFF")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="datePartArg")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="endDate")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="startDate")]
public static Nullable<int> DateDiff (string datePartArg, string startDate, string endDate);
static member DateDiff : string * string * string -> Nullable<int>
Public Shared Function DateDiff (datePartArg As String, startDate As String, endDate As String) As Nullable(Of Integer)

パラメーター

datePartArg
String

時間間隔数の差を計算する日付構成要素。

startDate
String

1 つ目の日付。

endDate
String

2 つ目の日付。

戻り値

2 つの日付の間に含まれる時間間隔の数。

属性

適用対象