Date Syntax
When setting a date style for a style set you can use the following syntax:
- Syntax for combined formats
- d: numeric day without leading zero ('5')
- dd: numeric day with leading zero ('05')
- ddd: short day name ('Tue')
- dddd: full day name ('Tuesday')
- m: numeric month without leading zero ('4')
- mm: numeric month with leading zero ('04')
- mmm: short month name ('Apr')
- mmmm: full month name ('April')
- y: numeric year without leading zero ('5')
- yy: numeric year with leading zero ('05')
- yyyy: full year name ('2005')
- tt: am or pm ('AM')
- gg: A.D. ('A.D')
- Syntax for single formats
- t: time ('09:22')
- r: full date, include time and zone ('Tue, 13 Dec 2005 09:22:32 GMT')
- s: format short date (year, month, day) and time ('2005-12-13T09:22:32')
- g: short date (day, month, year) and time ('13/12/2005 09:22:32')
- d: short date ('13/12/2005')
- D: date ('13 December 2005')
- f: date and time ('13 December 2005 09:26')
- escape character: To include one of the above characters as text, you must precede them with a '\' character. ('\D\a\t\e: 13/12/2005')