Displays the day of the month or the day of the week.
d | Displays the day of the week or month as a number without a leading zero for single-digit days. The sixth day of the month is shown as 6. |
dd | Displays the day of the week or month as a number with a leading zero for single-digit days. The sixth day of the month is shown as 06. |
ddd | Displays the day of the week or month as a three-letter abbreviation. Tuesday is shown as Tue. |
dddd | Displays the full name of the day of the week. Tuesday. |
The letter d can be either uppercase or lowercase.