CLDR MM
Month number, padded.
01
at the reference instant, Mon, Jan 2 2006, 3:04:05 PM MST
The month zero-padded to two digits, 01–12. The form ISO 8601 dates require, and the only month number strftime offers (%m).
| Language | Token | Caveat |
|---|---|---|
| C / POSIX strftime | %m | |
| C# custom format | MM | |
| CLDR / ICU pattern | MM | |
| Go time layout | 01 | |
| Java DateTimeFormatter | MM | |
| JavaScript Intl.DateTimeFormat | month: "2-digit" | |
| Moment.js format | MM | |
| PHP date() | m | |
| Python strftime | %m | |
| Ruby strftime | %m | |
| Rust chrono | %m | The documented %-m modifier form suppresses padding. |
Definition anchored to Unicode UTS #35 — Date Field Symbol Table.