SqlCeFunctions.DateAdd Method
Returns a new datetime value based on adding an interval to the specified date.
Assembly: EntityFramework.SqlServerCompact (in EntityFramework.SqlServerCompact.dll)
Name | Description | |
---|---|---|
![]() ![]() | 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. |
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.
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.