Share via


SqlCeFunctions.DateAdd Method

Definition

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.

number
Nullable<Double>

The value used to increment a date by a specified amount.

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.

number
Nullable<Double>

The value used to increment a date by a specified amount.

date
Nullable<DateTime>

The date to increment.

Returns

The new date.

Attributes

Applies to