Simple Date Format in Java

Dates and calendars have long been a challenge for Java programmers. One ray of sunshine in dealing with dates and times has been the SimpleDateFormat class found in the java.text package. The SimpleDateFormat class allows easy conversion of custom formattedĀ Strings to Dates and Dates to custom formatted Strings.

The main use case for the SimpleDateFormat class in real-world is for converting formats between different countries and when processing forms or data. Also, the SimpleDateFormat class is great for formatting times as well as dates.

Continue reading “Simple Date Format in Java”