public static LocalDateTime parse (CharSequence text)

Obtains an instance of LocalDateTime from a text string such as 2007-12-03T10:15:30.

The string must represent a valid date-time and is parsed using java.time.format.DateTimeFormatter.ISO_LOCAL_DATE_TIME.

Parameters:
text    the text to parse such as "2007-12-03T10:15:30", not null

Returns:  the parsed local date-time, not null

Exceptions:
DateTimeParseException    if the text cannot be parsed