DateTimeUtil::anyToDateTime Method [AX 2012]

Converts an anytype object to a utcdatetime value.

client server public static utcdatetime anyToDateTime(anytype value)

Run On

Called

Parameters

value
Type: anytype
The object to convert.

Return Value

Type: utcdatetime
A new utcdatetime value.

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.

Show: