SqlCeFunctions.DatePart Method
Returns an integer that represents the specified datepart of the specified date.
Assembly: EntityFramework.SqlServerCompact (in EntityFramework.SqlServerCompact.dll)
Name | Description | |
---|---|---|
![]() ![]() | DatePart(String, Nullable<DateTime>) | Returns an integer that represents the specified datepart of the specified date. |
![]() ![]() | DatePart(String, String) | Returns an integer that represents the specified datepart of the specified date. |
SqlCeFunctions.DatePart Method (String, Nullable<DateTime>)
Returns an integer that represents the specified datepart of the specified date.
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "date")] [DbFunctionAttribute("SqlServerCe", "DATEPART")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")] public static Nullable<int> DatePart( string datePartArg, Nullable<DateTime> date )
Parameters
- datePartArg
-
Type:
System.String
The part of the date to return the value.
- date
-
Type:
System.Nullable<DateTime>
The date.
SqlCeFunctions.DatePart Method (String, String)
Returns an integer that represents the specified datepart of the specified date.
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")] [DbFunctionAttribute("SqlServerCe", "DATEPART")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "date")] public static Nullable<int> DatePart( string datePartArg, string date )
Parameters
- datePartArg
-
Type:
System.String
The part of the date to return the value.
- date
-
Type:
System.String
The date.