All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
DateTimeFormat is not a JDK class, perhaps the question was meant to refer to the java.time.format.DateTimeFormatter class instead? Which indeed does not expose any public constructor.