CLDR M
Month number.
1
at the reference instant, Mon, Jan 2 2006, 3:04:05 PM MST
The month as a bare number, 1–12, no padding (1 for January). Several languages (strftime family) simply have no unpadded month token.
| Language | Token | Caveat |
|---|---|---|
| C# custom format | M | As a complete format string, "M" is the standard month/day pattern — write "%M". |
| CLDR / ICU pattern | M | Format-style month; L is the stand-alone form some locales need for nominative month names. |
| Go time layout | 1 | |
| Java DateTimeFormatter | M | |
| JavaScript Intl.DateTimeFormat | month: "numeric" | |
| Moment.js format | M | Mo gives the ordinal form (1st, 2nd). |
| PHP date() | n | |
| Ruby strftime | %-m | The minus is a padding flag on %m — documented, portable Ruby. |
Definition anchored to Unicode UTS #35 — Date Field Symbol Table.