Share via


SqlCeFunctions.DateName Method

Definition

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.

date
Nullable<DateTime>

The date.

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