Kotlin DateTimeParseException
问题 Getting date from https://api.spacexdata.com/v3/launches This date have format: 2006-03-25T10:30:00+12:00. I want convert it to "dd, mm, yyyy", but always getting error: "java.time.format.DateTimeParseException: Text '2006-03-25T10:30:00+12:00' could not be parsed, unparsed text found at index 10" my code: val formatter = DateTimeFormatter.ofPattern("dd, mm, yyyy", Locale.US) val myDate = LocalDate.parse(launchDate, formatter) var launchDateConverted: String= myDate.toString() i getting data