SqlCeFunctions.DateName Method
Returns a character string that represents the specified datepart of the specified date.
Assembly: EntityFramework.SqlServerCompact (in EntityFramework.SqlServerCompact.dll)
Name | Description | |
---|---|---|
![]() ![]() | DateName(String, Nullable<DateTime>) | Returns a character string that represents the specified datepart of the specified date. |
![]() ![]() | DateName(String, String) | Returns a character string that represents the specified datepart of the specified date. |
SqlCeFunctions.DateName Method (String, Nullable<DateTime>)
Returns a character string that represents the specified datepart of the specified date.
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "date")] [DbFunctionAttribute("SqlServerCe", "DATENAME")] public static string DateName( string datePartArg, Nullable<DateTime> date )
Parameters
- datePartArg
-
Type:
System.String
The part of the date to calculate the differing number of time intervals.
- date
-
Type:
System.Nullable<DateTime>
The date.
SqlCeFunctions.DateName Method (String, String)
Returns a character string that represents the specified datepart of the specified date.
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "datePartArg")] [DbFunctionAttribute("SqlServerCe", "DATENAME")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "date")] public static string DateName( string datePartArg, string date )
Parameters
- datePartArg
-
Type:
System.String
The part of the date to calculate the differing number of time intervals.
- date
-
Type:
System.String
The date.