toSafeLocalDateTime
fun String.toSafeLocalDateTime(format: DateTimeFormat<LocalDateTime> = LocalDateTime.Formats.ISO): LocalDateTime?
Parses this string as a LocalDateTime using format, returning null instead of throwing on a malformed string.
Return
the parsed LocalDateTime, or null if this string doesn't match format.
Parameters
format
the format to parse against. Defaults to ISO 8601.