getDate

fun JSONObject.getDate(key: String, defaultValue: Date? = null): Date?

Converts a date with the ISO format to a Date object.

Author

Arnau Mora

Since

20220223

Return

The parsed Date object.

Parameters

key

The key of the object to get.