Platform SDK: Exchange Server |
The DATEFMT property specifies the date format for any object that outputs a date. This property has the following format:
DATE {string}
The string specifies one of the following formats in which to print the date.
Specifier | Item | Values |
---|---|---|
M | Month | 1-12 |
MM | Month | 01-12 |
MMM | Month | Jan-Dec |
MMMM | Month | January-December |
d | Day | 1-31 |
dd | Day | 01-31 |
ddd | Day | Mon-Sun |
dddd | Day | Monday-Sunday |
yy | Year | 00-99 |
yyyy | Year | 1900-2040 |
The following examples illustrate the different formats.
Format | Translates to |
---|---|
d MMMM,yyyy | 14 July, 1990 |
dddd, MMMM d, yyyy | Thursday, July 14, 1990 |
dd-MM-yyyy | 14-07-1990 |