| C-Extensions / Formatting directives | |
A date-formatting mask specifies a format to apply to some date value. This mask is a combination of the following formatting directives:
| Character | Description |
|---|---|
| dd | Day of the month as a two-digit number (01 through 31) |
| ddd | Day of the week as a three-letter abbreviation (Sun through Sat) |
| mm | Month as a two-digit number (01 through 12) |
| mmm | Month as a three-letter abbreviation (Jan through Dec) |
| yy | Year as a two-digit number (00 through 99) |
| yyyy | Year as a four-digit number (0001 through 9999) |
| ww | Day of the week as a two-digit number (00 for Sunday, 01 for Monday, 02 for Tuesday … 06 for Saturday) |
Any other characters in the formatting mask are reproduced literally in the result.