CLDR d
Day of month.
2
at the reference instant, Mon, Jan 2 2006, 3:04:05 PM MST
The day of the month as a bare number, 1–31, no padding. As with months, the strftime family offers only the padded form portably.
| Language | Token | Caveat |
|---|---|---|
| C# custom format | d | As a complete format string, "d" is the standard short-date pattern — write "%d". |
| CLDR / ICU pattern | d | |
| Go time layout | 2 | |
| Java DateTimeFormatter | d | |
| JavaScript Intl.DateTimeFormat | day: "numeric" | |
| Moment.js format | D | Do gives the ordinal form (1st, 2nd). |
| PHP date() | j | |
| Ruby strftime | %-d | The minus is a padding flag on %d; %e gives the blank-padded form instead. |
Definition anchored to Unicode UTS #35 — Date Field Symbol Table.