utcToDate

fun String.utcToDate(format: String = FRDateFormat.ISO_8601.format): Date?

Convert a date string to a date which based on the UTC.

Return

A date if the string can be converted, or null otherwise.

Parameters

format

A date format, which the default is ISO 8601.