SqlCeFunctions.DateAdd Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DateAdd(String, Nullable<Double>, String) |
Returns a new datetime value based on adding an interval to the specified date. |
DateAdd(String, Nullable<Double>, Nullable<DateTime>) |
Returns a new datetime value based on adding an interval to the specified date. |
DateAdd(String, Nullable<Double>, String)
Returns a new datetime value based on adding an interval to the specified date.
[System.Data.Entity.DbFunction("SqlServerCe", "DATEADD")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="date")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="datePartArg")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
public static Nullable<DateTime> DateAdd (string datePartArg, Nullable<double> number, string date);
static member DateAdd : string * Nullable<double> * string -> Nullable<DateTime>
Public Shared Function DateAdd (datePartArg As String, number As Nullable(Of Double), date As String) As Nullable(Of DateTime)
Parameters
- datePartArg
- String
The part of the date to increment.
- date
- String
The date to increment.
Returns
A Nullable<T> of DateTime value that is the new date.
- Attributes
Applies to
DateAdd(String, Nullable<Double>, Nullable<DateTime>)
Returns a new datetime value based on adding an interval to the specified date.
[System.Data.Entity.DbFunction("SqlServerCe", "DATEADD")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="datePartArg")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="date")]
public static Nullable<DateTime> DateAdd (string datePartArg, Nullable<double> number, Nullable<DateTime> date);
static member DateAdd : string * Nullable<double> * Nullable<DateTime> -> Nullable<DateTime>
Public Shared Function DateAdd (datePartArg As String, number As Nullable(Of Double), date As Nullable(Of DateTime)) As Nullable(Of DateTime)
Parameters
- datePartArg
- String
The part of the date to increment.
Returns
The new date.
- Attributes
Applies to
Entity Framework