From 45346a0134e1325c8a2f9c69604d60cfcd8dd321 Mon Sep 17 00:00:00 2001 From: "hedwig.doets" Date: Tue, 9 Jun 2026 10:43:47 +0200 Subject: [PATCH 1/2] Align week year explanation with modeling parse and format date function calls doc --- static/_includes/refguide/custom-date-format-tokens.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/_includes/refguide/custom-date-format-tokens.md b/static/_includes/refguide/custom-date-format-tokens.md index 9e012f7c952..3da298eb3f0 100644 --- a/static/_includes/refguide/custom-date-format-tokens.md +++ b/static/_includes/refguide/custom-date-format-tokens.md @@ -5,8 +5,10 @@ All examples are for **30th December 2014, at 00:27:16.789** | `G` | AD | The era | | `y`, `yyy`, `yyyy`, *etc.* | 2014 | Year | | `yy` | 14 | Year | -| `Y`, `YYY`, `YYYY`, *etc.* | 2015 | Week year, use in combination with `w` for [week number](https://en.wikipedia.org/wiki/Week#Week_numbering) formatting | -| `YY` | 15 | Week year, use in combination with `w` for [week number](https://en.wikipedia.org/wiki/Week#Week_numbering) formatting | +| `Y`, `YYY`, `YYYY`, *etc.* | 2015 | ISO week-numbering year, four digits:
`YYYY` shows the year based on the ISO week the date falls in, where week 1 is the first week containing at least four days of the new year. For example, 2014-12-31 is in ISO week 1 +of 2015, so `YYYY` returns 2015, while `yyyy` returns 2014. | +| `YY` | 15 |ISO week-numbering year, four digits:
`YYYY` shows the year based on the ISO week the date falls in, where week 1 is the first week containing at least four days of the new year. For example, 2014-12-31 is in ISO week 1 +of 2015, so `YYYY` returns 2015, while `yyyy` returns 2014. | | `M`, `MM`* | 12 | Month number | | `MMM` | Dec | Month abbreviation | | `MMMM` | December | Month name | From 7e589c023cbdfa1ced0a2bc7bf509d4254834672 Mon Sep 17 00:00:00 2001 From: "hedwig.doets" Date: Tue, 9 Jun 2026 10:47:00 +0200 Subject: [PATCH 2/2] fix two digit explanation --- static/_includes/refguide/custom-date-format-tokens.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/_includes/refguide/custom-date-format-tokens.md b/static/_includes/refguide/custom-date-format-tokens.md index 3da298eb3f0..9b71dc01daa 100644 --- a/static/_includes/refguide/custom-date-format-tokens.md +++ b/static/_includes/refguide/custom-date-format-tokens.md @@ -7,8 +7,8 @@ All examples are for **30th December 2014, at 00:27:16.789** | `yy` | 14 | Year | | `Y`, `YYY`, `YYYY`, *etc.* | 2015 | ISO week-numbering year, four digits:
`YYYY` shows the year based on the ISO week the date falls in, where week 1 is the first week containing at least four days of the new year. For example, 2014-12-31 is in ISO week 1 of 2015, so `YYYY` returns 2015, while `yyyy` returns 2014. | -| `YY` | 15 |ISO week-numbering year, four digits:
`YYYY` shows the year based on the ISO week the date falls in, where week 1 is the first week containing at least four days of the new year. For example, 2014-12-31 is in ISO week 1 -of 2015, so `YYYY` returns 2015, while `yyyy` returns 2014. | +| `YY` | 15 |ISO week-numbering year, two digits:
`YY` shows the year based on the ISO week the date falls in, where week 1 is the first week containing at least four days of the new year. For example, 2014-12-31 is in ISO week 1 +of 15, so `YY` returns 15, while `yy` returns 14. | | `M`, `MM`* | 12 | Month number | | `MMM` | Dec | Month abbreviation | | `MMMM` | December | Month name |