DateTimeUtil.newDateTime 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
newDateTime(Date, Int32) |
Creates a new utcdatetime value by using the specified date and timeOfDay values. |
newDateTime(Date, Int32, Timezone) |
newDateTime(Date, Int32)
Creates a new utcdatetime value by using the specified date and timeOfDay values.
public:
static Microsoft::Dynamics::Ax::Xpp::AxShared::utcdatetime newDateTime(Microsoft::Dynamics::Ax::Xpp::AxShared::Date date1, int num1);
public static Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime newDateTime (Microsoft.Dynamics.Ax.Xpp.AxShared.Date date1, int num1);
static member newDateTime : Microsoft.Dynamics.Ax.Xpp.AxShared.Date * int -> Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime
Public Shared Function newDateTime (date1 As Date, num1 As Integer) As utcdatetime
Parameters
- date1
- Microsoft.Dynamics.Ax.Xpp.AxShared.Date
- num1
- Int32
Returns
A new utcdatetime value.
Remarks
If no value is specified for the tzOffsetToRemove parameter, the utcdatetime value will be created in the UTC time zone.
Applies to
newDateTime(Date, Int32, Timezone)
public:
static Microsoft::Dynamics::Ax::Xpp::AxShared::utcdatetime newDateTime(Microsoft::Dynamics::Ax::Xpp::AxShared::Date _date, int _time, Dynamics::AX::Application::Timezone _tzOffsetToRemove);
public static Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime newDateTime (Microsoft.Dynamics.Ax.Xpp.AxShared.Date _date, int _time, Dynamics.AX.Application.Timezone _tzOffsetToRemove);
static member newDateTime : Microsoft.Dynamics.Ax.Xpp.AxShared.Date * int * Dynamics.AX.Application.Timezone -> Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime
Public Shared Function newDateTime (_date As Date, _time As Integer, _tzOffsetToRemove As Timezone) As utcdatetime
Parameters
- _date
- Microsoft.Dynamics.Ax.Xpp.AxShared.Date
The time zone in which to create the new utcdatetime value; optional.
- _time
- Int32
The time zone in which to create the new utcdatetime value; optional.
- _tzOffsetToRemove
- Timezone
The time zone in which to create the new utcdatetime value; optional.