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 …

How to use SimpleDateFormat in Java? Read More »