CLDR / ICU pattern to Java DateTimeFormatter.
Every CLDR / ICU pattern field maps cleanly — the table below is the whole story.
Java DateTimeFormatter
uuuu-MM-dd HH:mm
Reference · Mon, Jan 2 2006, 3:04:05 PM MST
0606-01-02 15:04
0606-01-02 15:04
Right now, your zone
…
Both sides render the same instant — the translation is faithful.
| CLDR / ICU pattern | Java DateTimeFormatter | Field | Example |
|---|---|---|---|
| y | uuuu | Four-digit year | 2006 |
| yy | uu | Two-digit year | 06 |
| M | M | Month number | 1 |
| MM | MM | Month number, padded | 01 |
| MMM | MMM | Month name, abbreviated | Jan |
| MMMM | MMMM | Month name, full | January |
| d | d | Day of month | 2 |
| dd | dd | Day of month, padded | 02 |
| E | EEE | Weekday, abbreviated | Mon |
| EEEE | EEEE | Weekday, full | Monday |
| D | D | Day of year | 2 |
| w | w | Week of year | 1 |
| Y | YYYY | ISO week-based year | 2006 |
| H | H | Hour, 24-hour clock | 15 |
| HH | HH | Hour, 24-hour clock, padded | 15 |
| h | h | Hour, 12-hour clock | 3 |
| hh | hh | Hour, 12-hour clock, padded | 03 |
| a | a | AM/PM marker | PM |
| mm | mm | Minute, padded | 04 |
| ss | ss | Second, padded | 05 |
| S | SSS | Fractional seconds | 000 |
| xx | Z | UTC offset, basic | -0700 |
| xxx | xxx | UTC offset, extended | -07:00 |
| z | z | Time-zone name, short | MST |
| G | G | Era | AD |
| Q | Q | Quarter | 1 |