Compartir a través de


DateTimeUtil.anyToDateTime(Object) Method

Definition

Converts an anytype object to a utcdatetime value.

public:
 static Microsoft::Dynamics::Ax::Xpp::AxShared::utcdatetime anyToDateTime(System::Object ^ _value);
public static Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime anyToDateTime (object _value);
static member anyToDateTime : obj -> Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime
Public Shared Function anyToDateTime (_value As Object) As utcdatetime

Parameters

_value
Object

The object to convert.

Returns

Microsoft.Dynamics.Ax.Xpp.AxShared.utcdatetime

A new utcdatetime value.

Remarks

The following example string shows the format of a date-time string that this anyToDateTime method can correctly convert: "2009-01-28T13:44:55". The output of the DateTimeUtil::utcNow method is valid input into the anyToDateTime method.

Applies to