Szerkesztés

Megosztás a következőn keresztül:


EntityFunctions.CreateDateTime Method

Definition

Invokes the canonical CreateDateTime function. For information about the canonical CreateDateTime function, see Date and Time Canonical Functions.

public:
 static Nullable<DateTime> CreateDateTime(Nullable<int> year, Nullable<int> month, Nullable<int> day, Nullable<int> hour, Nullable<int> minute, Nullable<double> second);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "CreateDateTime")]
public static DateTime? CreateDateTime (int? year, int? month, int? day, int? hour, int? minute, double? second);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "CreateDateTime")>]
static member CreateDateTime : Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<double> -> Nullable<DateTime>
Public Shared Function CreateDateTime (year As Nullable(Of Integer), month As Nullable(Of Integer), day As Nullable(Of Integer), hour As Nullable(Of Integer), minute As Nullable(Of Integer), second As Nullable(Of Double)) As Nullable(Of DateTime)

Parameters

year
Nullable<Int32>

The year part of the new date.

month
Nullable<Int32>

The month part of the new date.

day
Nullable<Int32>

The day part of the new date.

hour
Nullable<Int32>

The hour part of the new date.

minute
Nullable<Int32>

The minutes part of the new date.

second
Nullable<Double>

The seconds part of the new date. Note that you can specify fractions of a second with this parameter.

Returns

The new date.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database.

Applies to