The DateTimeFormatter class is used to format date-time instances from the new java.time package. This class is a replacement for the older SimpleDateFormat class.
Unlike SimpleDateFormat instances, DateTimeFormatter instances are thread safe and immutable so the same instance can be used from multiple threads.
Empty input
Java version: 1.8.0_275