Obtains an instance of LocalDateTime from a text string using a specific formatter.
The text is parsed using the formatter, returning a date-time.
text | the text to parse, not null | |
formatter | the formatter to use, not null |
DateTimeParseException | if the text cannot be parsed |
Diagram: LocalDateTime