SqlCeFunctions.DateAdd Method

 

Returns a new datetime value based on adding an interval to the specified date.

Namespace:   System.Data.Entity.SqlServerCompact
Assembly:  EntityFramework.SqlServerCompact (in EntityFramework.SqlServerCompact.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticDateAdd(String, Nullable<Double>, Nullable<DateTime>)

Returns a new datetime value based on adding an interval to the specified date.

System_CAPS_pubmethodSystem_CAPS_staticDateAdd(String, Nullable<Double>, String)

Returns a new datetime value based on adding an interval to the specified date.


SqlCeFunctions.DateAdd Method (String, Nullable<Double>, Nullable<DateTime>)

Returns a new datetime value based on adding an interval to the specified date.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "number")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "datePartArg")]
[DbFunctionAttribute("SqlServerCe", "DATEADD")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "date")]
public static Nullable<DateTime> DateAdd(
	string datePartArg,
	Nullable<double> number,
	Nullable<DateTime> date
)

Parameters

datePartArg
Type: System.String

The part of the date to increment.

number
Type: System.Nullable<Double>

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

date
Type: System.Nullable<DateTime>

The date to increment.

Return Value

Type: System.Nullable<DateTime>

The new date.


SqlCeFunctions.DateAdd Method (String, Nullable<Double>, String)

Returns a new datetime value based on adding an interval to the specified date.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "date")]
[DbFunctionAttribute("SqlServerCe", "DATEADD")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "datePartArg")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "number")]
public static Nullable<DateTime> DateAdd(
	string datePartArg,
	Nullable<double> number,
	string date
)

Parameters

datePartArg
Type: System.String

The part of the date to increment.

number
Type: System.Nullable<Double>

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

date
Type: System.String

The date to increment.

Return Value

Type: System.Nullable<DateTime>

A Nullable<T> of DateTime value that is the new date.