Edit

Share via


EntityFunctions.CreateDateTimeOffset Method

Definition

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

public:
 static Nullable<DateTimeOffset> CreateDateTimeOffset(Nullable<int> year, Nullable<int> month, Nullable<int> day, Nullable<int> hour, Nullable<int> minute, Nullable<double> second, Nullable<int> timeZoneOffset);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "CreateDateTimeOffset")]
public static DateTimeOffset? CreateDateTimeOffset (int? year, int? month, int? day, int? hour, int? minute, double? second, int? timeZoneOffset);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "CreateDateTimeOffset")>]
static member CreateDateTimeOffset : Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<double> * Nullable<int> -> Nullable<DateTimeOffset>
Public Shared Function CreateDateTimeOffset (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), timeZoneOffset As Nullable(Of Integer)) As Nullable(Of DateTimeOffset)

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 minute 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.

timeZoneOffset
Nullable<Int32>

The time zone offset part of the new date.

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