Sample date formats


The following table lists sample date and time strings along with a corresponding date format to help you correlate what each date format means.

This information can help you in the following scenarios:

Date formats

Sample date and time string

Date format

Tue May 13 16:30:00

EEE MMM dd HH:mm:ss

Tue May 13 2014 23:30:00.789

EEE MMM dd yyyy HH:mm:ss.SSS

Tue May 13 16:30:00 -0800 2014

EEE MMM dd HH:mm:ss Z yyyy

13 May 2014 23:50:49,999

dd MMM yyyy HH:mm:ss,SSS

May 13, 2014 11:30:00 PM PST

MMM dd, yyyy hh:mm:ss a z

23:30:00

HH:mm:ss

2014/05/13 16:30:59.786

yyyy/MM/dd HH:mm:ss.SSS

For more information about date formats, see the following link:http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html