EntityFunctions.AddDays EntityFunctions.AddDays EntityFunctions.AddDays EntityFunctions.AddDays Method

Definition

Invokes the canonical AddDays function. For information about the canonical AddDays function, see Date and Time Canonical Functions.

Overloads

AddDays(Nullable<DateTime>, Nullable<Int32>) AddDays(Nullable<DateTime>, Nullable<Int32>) AddDays(Nullable<DateTime>, Nullable<Int32>) AddDays(Nullable<DateTime>, Nullable<Int32>)

Invokes the canonical AddDays function. For information about the canonical AddDays function, see Date and Time Canonical Functions.

AddDays(Nullable<DateTimeOffset>, Nullable<Int32>) AddDays(Nullable<DateTimeOffset>, Nullable<Int32>) AddDays(Nullable<DateTimeOffset>, Nullable<Int32>) AddDays(Nullable<DateTimeOffset>, Nullable<Int32>)

Invokes the canonical AddDays function. For information about the canonical AddDays function, see Date and Time Canonical Functions.

AddDays(Nullable<DateTime>, Nullable<Int32>) AddDays(Nullable<DateTime>, Nullable<Int32>) AddDays(Nullable<DateTime>, Nullable<Int32>) AddDays(Nullable<DateTime>, Nullable<Int32>)

Invokes the canonical AddDays function. For information about the canonical AddDays function, see Date and Time Canonical Functions.

public:
 static Nullable<DateTime> AddDays(Nullable<DateTime> dateValue, Nullable<int> addValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddDays")]
public static Nullable<DateTime> AddDays (Nullable<DateTime> dateValue, Nullable<int> addValue);
static member AddDays : Nullable<DateTime> * Nullable<int> -> Nullable<DateTime>
Public Shared Function AddDays (dateValue As Nullable(Of DateTime), addValue As Nullable(Of Integer)) As Nullable(Of DateTime)

Parameters

dateValue
Nullable<DateTime>

A valid date.

addValue
Nullable<Int32>

The number of days to add to dateValue.

Returns

The dateValue incremented by addValue.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database.

AddDays(Nullable<DateTimeOffset>, Nullable<Int32>) AddDays(Nullable<DateTimeOffset>, Nullable<Int32>) AddDays(Nullable<DateTimeOffset>, Nullable<Int32>) AddDays(Nullable<DateTimeOffset>, Nullable<Int32>)

Invokes the canonical AddDays function. For information about the canonical AddDays function, see Date and Time Canonical Functions.

public:
 static Nullable<DateTimeOffset> AddDays(Nullable<DateTimeOffset> dateValue, Nullable<int> addValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddDays")]
public static Nullable<DateTimeOffset> AddDays (Nullable<DateTimeOffset> dateValue, Nullable<int> addValue);
static member AddDays : Nullable<DateTimeOffset> * Nullable<int> -> Nullable<DateTimeOffset>
Public Shared Function AddDays (dateValue As Nullable(Of DateTimeOffset), addValue As Nullable(Of Integer)) As Nullable(Of DateTimeOffset)

Parameters

dateValue
Nullable<DateTimeOffset>

A valid date time offset.

addValue
Nullable<Int32>

The number of days to add to dateValue.

Returns

The dateValue incremented by addValue.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database.

Applies to