Some complex date formats
Java provides a wide range of date options that can be used to define date formats, but sometimes the options to choose for a particular date time string aren't immediately obvious.
Some date formats that may prove useful are as follows:
- ISO 8601 with offset standard: This format contains date, time, and the offset from UTC, as well as the
T
character that designates the start of the time, for example,2007-04-05T12:30:22-02:00
.The pattern for this date and time format is
yyyy-MM-dd'T'HH:mm:ssXXX
. - Mtime pattern: The
tFileProperties
component returns a field namedmtime_string
that is a string representation of a date and time format, for example,Wed Mar 13 23:53:07 GMT 2013
.The pattern for this date and time format is
EEE MMM dd HH:mm:ss z yyyy
.