getAsDateTime method

DateTime getAsDateTime (String key)

Converts map element into a DateTime or returns the current date if conversion is not possible.

  • key a key of element to get. Returns DateTime value of the element or the current date if conversion is not supported.

See getAsDateTimeWithDefault