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:
- While customizing a date format at the time of creating a new data pattern.
- While creating a custom date format at the time of editing or cloning a data pattern.
- While creating a date format at the time of creating a data collector.
(See the individual pages based on the kind of data collector that you want to create).
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