In This Topic
| Format Pattern |
Description |
| d |
The day of the month. Single-digit days will not have a leading zero. |
| dd |
The day of the month. Single-digit days will have a leading zero. |
| ddd |
The abbreviated name of the day of the week, as defined in the DateTimeFormatInfo's AbbreviatedDayNames property. |
| dddd |
The full name of the day of the week, as defined in the DateTimeFormatInfo's DayNames property. |
| M |
The numeric month. Single-digit months will not have a leading zero. |
| MM |
The numeric month. Single-digit months will have a leading zero. |
| MMM |
The abbreviated name of the month, as defined in the DateTimeFormatInfo's AbbreviatedMonthNames property. |
| MMMM |
The full name of the month, as defined in the DateTimeFormatInfo's MonthNames property. |
| y |
The year without the century. If the year without the century is less than 10, the year is displayed with no leading zero. |
| yy |
The year without the century. If the year without the century is less than 10, the year is displayed with a leading zero. |
| yyy, yyyy |
The year in four digits, including the century. |