EntityFunctions.CreateDateTime(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Double>) EntityFunctions.CreateDateTime(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Double>) EntityFunctions.CreateDateTime(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Double>) EntityFunctions.CreateDateTime(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Double>) Method

Definición

Invoca a la función canónica CreateDateTime.Invokes the canonical CreateDateTime function. Para información sobre la función canónica CreateDateTime, vea Funciones canónicas de fecha y hora.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 Nullable<DateTime> CreateDateTime (Nullable<int> year, Nullable<int> month, Nullable<int> day, Nullable<int> hour, Nullable<int> minute, Nullable<double> second);
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)

Parámetros

year
Nullable<Int32>

Elemento de año de la nueva fecha.The year part of the new date.

month
Nullable<Int32>

Elemento de mes de la nueva fecha.The month part of the new date.

day
Nullable<Int32>

Elemento de día de la nueva fecha.The day part of the new date.

hour
Nullable<Int32>

Elemento de hora de la nueva fecha.The hour part of the new date.

minute
Nullable<Int32>

Elemento de minutos de la nueva fecha.The minutes part of the new date.

second
Nullable<Double>

Elemento de segundos de la nueva fecha.The seconds part of the new date. Observe que puede especificar fracciones de segundo con este parámetro.Note that you can specify fractions of a second with this parameter.

Devoluciones

La nueva fecha.The new date.

Comentarios

No se puede llamar directamente a esta función.You cannot call this function directly. Esta función solo puede aparecer dentro de una consulta de LINQ to Entities.This function can only appear within a LINQ to Entities query.

Esta función se traduce en una función correspondiente en la base de datos.This function is translated to a corresponding function in the database.

Se aplica a