Date and Time Parsing Format
Character | Description | Example |
---|---|---|
y | Year | yyyy => 2018; yy => 18 |
M | Month in year | MM => 08; MMM => Aug; MMMM => August |
d | Day in month | dd => 09 |
H | Hour in day (0-23) | HH => 13 |
m | Minute in hour | mm => 25 |
s | Second in minute | ss => 56 |
S | Millisecond | SSS => 367 |
Z | Time zone | Z => +0800 |
For example, time text:
2018/08/09 13:25:56.367 +0800
can be used
yyyy/MM/dd HH:mm:ss.SSS Z
Come to analyze.