Custom date and time format strings

  1. d - Day of the month (1 to 31)
  2. dd - Day of the month (01 to 31)
  3. ddd - Abbreviated name of the day of the week (Mon to Sun)
  4. dddd - Full name of the day of the week (Monday to Sunday)
  5. f - Tenths of a second
  6. ff - Hundredths of a second
  7. fff - Milliseconds of a second
  8. ffff - Ten thousandths of a second
  9. fffff - Hundred thousandths of a second
  10. ffffff - Millionths of a second
  11. fffffff - Ten millionths of a second
  12. F - Tenths of a second
  13. FF - Hundredths of a second
  14. FFF - Milliseconds of a second
  15. FFFF - Ten thousandths of a second
  16. FFFFF - Hundred thousandths of a second
  17. FFFFFF - Millionths of a second
  18. FFFFFFF - Ten millionths of a second
  19. g - Period or era
  20. gg - Period or era
  21. h - 12-hour (1 to 12)
  22. hh - 12-hour (01 to 12)
  23. H - 24-hour (0 to 23)
  24. HH - 24-hour (00 to 23)
  25. K - Time zone information
  26. m - Minute (0 to 59)
  27. mm - Minute (00 to 59)
  28. M - Month (1 to 12)
  29. MM - Month (01 to 12)
  30. MMM - Abbreviated name of month (Jan to Dec)
  31. MMMM - Full name of month (January to December)
  32. s - Second (0 to 59)
  33. ss - Second (00 to 59)
  34. t - First character of AM/PM designator
  35. tt - AM/PM designator
  36. y - Year (0 to 99)
  37. yy - Year (00 to 99)
  38. yyy - Year (minimum of three digits)
  39. yyyy - Year (four-digit number)
  40. yyyyy - Year (five-digit number)
  41. z - Hours offset from UTC with no leading zeros
  42. zz - Hours offset from UTC with a leading zeros for a single-digit value
  43. zzz - Hours and minutes offset from UTC
  44. : - Time separator
  45. / - Date separator
  46. "string" - Literal string delimiter
  47. 'string' - Literal string delimiter
  48. % - Defines the following character as a custom format specifier
  49. \ - The escape character
  50. Any other character - The character is copied to the result string unchanged