Formats this date-time using the specified formatter.
This date-time will be passed to the formatter to produce a string.
The default implementation must behave as follows:
return formatter.format(this);
formatter | the formatter to use, not null |
DateTimeException | if an error occurs during printing |
Diagram: LocalDateTime