Custom date and time format strings
- d - Day of the month (1 to 31)
- dd - Day of the month (01 to 31)
- ddd - Abbreviated name of the day of the week (Mon to Sun)
- dddd - Full name of the day of the week (Monday to Sunday)
- f - Tenths of a second
- ff - Hundredths of a second
- fff - Milliseconds of a second
- ffff - Ten thousandths of a second
- fffff - Hundred thousandths of a second
- ffffff - Millionths of a second
- fffffff - Ten millionths of a second
- F - Tenths of a second
- FF - Hundredths of a second
- FFF - Milliseconds of a second
- FFFF - Ten thousandths of a second
- FFFFF - Hundred thousandths of a second
- FFFFFF - Millionths of a second
- FFFFFFF - Ten millionths of a second
- g - Period or era
- gg - Period or era
- h - 12-hour (1 to 12)
- hh - 12-hour (01 to 12)
- H - 24-hour (0 to 23)
- HH - 24-hour (00 to 23)
- K - Time zone information
- m - Minute (0 to 59)
- mm - Minute (00 to 59)
- M - Month (1 to 12)
- MM - Month (01 to 12)
- MMM - Abbreviated name of month (Jan to Dec)
- MMMM - Full name of month (January to December)
- s - Second (0 to 59)
- ss - Second (00 to 59)
- t - First character of AM/PM designator
- tt - AM/PM designator
- y - Year (0 to 99)
- yy - Year (00 to 99)
- yyy - Year (minimum of three digits)
- yyyy - Year (four-digit number)
- yyyyy - Year (five-digit number)
- z - Hours offset from UTC with no leading zeros
- zz - Hours offset from UTC with a leading zeros for a single-digit value
- zzz - Hours and minutes offset from UTC
- : - Time separator
- / - Date separator
- "string" - Literal string delimiter
- 'string' - Literal string delimiter
- % - Defines the following character as a custom format specifier
- \ - The escape character
- Any other character - The character is copied to the result string unchanged