How-to articles, tricks, and solutions about SIMPLEDATEFORMAT

How to parse a date?

To parse a date in Java, you can use the SimpleDateFormat class.

Java format yyyy-MM-dd'T'HH:mm:ss.SSSz to yyyy-mm-dd HH:mm:ss

To convert a date in the format yyyy-MM-dd'T'HH:mm:ss.SSSz to the format yyyy-mm-dd HH:mm:ss, you can use the SimpleDateFormat class in Java.

What is this date format? 2011-08-12T20:17:46.384Z

The date format "2011-08-12T20:17:46.384Z" is an ISO 8601 extended format, which is often used for exchanging date and time information in a machine-readable format.