Datetime Attribute Formats | |||
---|---|---|---|
Type | Format | Example Strings | Description |
Year |
Y - year digit |
|
The year A.D. 1917 |
Month |
Y - year digitM - month digit |
|
October of A.D. 1917 |
Week |
Y - year digitW - week indicatorw - week digit |
|
The 42nd week of A.D. 1917 |
Date |
Y - year digitM - month digitD - day digit |
|
July 4, A.D. 1776 |
Local Date and Time |
Y - year digitM - month digitD - day digitT or space - time indicatorh - hour digitm - minute digits - second digitd - optional decimal portion |
|
October 13, A.D. 1917 at 34.742 seconds after 12 p.m. |
Global Date and Time |
Y - year digitM - month digitD - day digitT or space - time indicatorh - hour digitm - minute digits - second digitd - optional decimal portionz - time zone |
|
October 13, A.D. 1917 at 12 p.m. Greenwich Mean Time October 13, A.D. 1917 at 12 p.m. Eastern Standard Time October 13, A.D. 1917 at 12 p.m. Eastern Daylight Time |
Time |
h - hour digitm - minute digits - second digitd - optional decimal portion |
|
5 minutes and 23.94 seconds after midnight |
Day |
M - month digitD - day digit |
|
April 24th |
Period of Time |
(-) - optional negativeP - period indicatorY - year indicatorM - month indicatorD - day indicatorT - time indicatorH - hour indicatorM - minute indicatorS - second indicator |
|
10 days 1 hour and 30 minutes -15 seconds 2 years, 3 months, 5 hours, and 40 seconds 3 months 3 minutes 10 days, 3 hours, and 15 minutes |
© 20072024 XoaX.net LLC. All rights reserved.