How to use SimpleDateFormat in Java?

How to use SimpleDateFormat in Java?


SimpleDateFormat class is used for many jobs of getting time as per the locale, converting date one form to the other etc.

Date formats like yyyy-mm-dd are also shown with examples.

1. SimpleDateFormat to set time as per the country with Locale
2. SimpleDateFormat to convert Date object to String form
3. SimpleDateFormat to convert String to Date
4. Java Dates Comparison

Leave a Reply

Your email address will not be published. Required fields are marked *