Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Version: Available or changed with runtime version 15.0.
Retrieves the value of a property with a given key from a JsonObject as a DateTime.
Syntax
Value := JsonObject.GetDateTime(Key: Text [, DefaultIfNotFound: Boolean])
Parameters
JsonObject
Type: JsonObject
An instance of the JsonObject data type.
Key
Type: Text
The key for the property to read as a DateTime
[Optional] DefaultIfNotFound
Type: Boolean
If true and the key is not found on the object then 0DT should be returned. If false and the property is not found on the object an error will be thrown
Return Value
Value
Type: DateTime
The value of the property with the given key as a DateTime
Related information
JsonObject data type
Getting started with AL
Developing extensions