toDate

fun String.toDate(format: String, locale: Locale, timezone: TimeZone): Date?

Convert a date string to a date.

Return

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

Parameters

format

A date format

locale

A language locale

timezone

A time zone