public static LocalDateTime parse (CharSequence text, DateTimeFormatter formatter)

Obtains an instance of LocalDateTime from a text string using a specific formatter.

The text is parsed using the formatter, returning a date-time.

Parameters:
text    the text to parse, not null
formatter    the formatter to use, not null

Returns:  the parsed local date-time, not null

Exceptions:
DateTimeParseException    if the text cannot be parsed