SqlCeFunctions.DateName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
DateName(String, Nullable<DateTime>)
Returns a character string that represents the specified datepart of the specified date.
[System.Data.Entity.DbFunction("SqlServerCe", "DATENAME")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="datePartArg")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="date")]
public static string DateName (string datePartArg, Nullable<DateTime> date);
static member DateName : string * Nullable<DateTime> -> string
Public Shared Function DateName (datePartArg As String, date As Nullable(Of DateTime)) As String
Parameters
- datePartArg
- String
The part of the date to calculate the differing number of time intervals.
Returns
The specified part of the specified date.
- Attributes
Applies to
DateName(String, String)
Returns a character string that represents the specified datepart of the specified date.
[System.Data.Entity.DbFunction("SqlServerCe", "DATENAME")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="datePartArg")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="date")]
public static string DateName (string datePartArg, string date);
static member DateName : string * string -> string
Public Shared Function DateName (datePartArg As String, date As String) As String
Parameters
- datePartArg
- String
The part of the date to calculate the differing number of time intervals.
- date
- String
The date.
Returns
The specified part of the specified date.
- Attributes
Applies to
Entity Framework