toCalendarOrNull

@JvmOverloads
fun String.toCalendarOrNull(pattern: String = "EEE MMM dd HH:mm:ss zzz yyyy"): Calendar?

Produce a Calendar from the given strings value and pattern if possible.

Since

1.1.0

Return

A nullable Calendar parsed from the string.

See also