The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

AsTime Method

Converts the value in a JsonValue to a Time data type.

Time := JsonValue.AsTime


 Type: JsonValue

Return Value

Type: Time


If the JsonValue does not contain a string of the format "HH:mm:ss.FFFFFFF" ( see Custom Date and Time Format Strings) the operation will fail with a run-time error.

See Also

Getting Started with AL
Developing Extensions