With Java v8, we have new API for Date and Time, which looks pretty elegant and also is immutable and hence thread-safe.
java.time package summary added in Java v8 for detailed info of all the classes present in this package. Also checking official Java Tutorial Trail for Data Time really helps understand the API better.
This API is based on / inspired by the wonderful Joda-Time, which was the de facto standard date and time library for Java prior to Java SE 8.
In this blogpost, we will discuss how to parse and format dates with this new API.