+
+ Day |
+
+
+ DD |
+ Numeric, with leading zeros |
+ 01 to 31 |
+
+
+ D |
+ Numeric, without leading zeros |
+ 1 to 31 |
+
+
+ Do |
+ The English suffix for the day of the month |
+ st, nd or th in the 1st, 2nd or 15th. |
+
+
+
+ Month |
+
+
+ MM |
+ Numeric, with leading zeros |
+ 01 to 31 |
+
+
+ M |
+ Numeric, without leading zeros |
+ 1 to 31 |
+
+
+ MMMM |
+ Textual full |
+ January to December |
+
+
+ MMM |
+ Textual three letters |
+ Jan to Dec |
+
+
+
+ Year |
+
+
+ YYYY |
+ Numeric, 4 digits |
+ Eg., 1999, 2003 |
+
+
+ YY |
+ Numeric, 2 digits |
+ Eg., 99, 03 |
+
+
+
+ Time |
+
+
+ a |
+ am/pm Lowercase |
+ am, pm |
+
+
+ A |
+ AM/PM Uppercase |
+ AM, PM |
+
+
+ h |
+ Hour, 12-hour, without leading zeros |
+ 1-12 |
+
+
+ hh |
+ Hour, 12-hour, with leading zeros |
+ 01-12 |
+
+
+ H |
+ Hour, 24-hour, without leading zeros |
+ 0-23 |
+
+
+ HH |
+ Hour, 24-hour, with leading zeros |
+ 00-23 |
+
+
+ mm |
+ Minutes, with leading zeros |
+ 00-59 |
+
+
+ ss |
+ Seconds, with leading zeros |
+ 00-59 |
+
+
+ zz |
+ Timezone abbreviation |
+ Eg., EST, MDT ... |
+
+
+