sap.ui.core.format.DateFormat: Format with pattern results sometimes in an incorrect return value
OpenUI5 version: latest (1.61.2)
Browser/version (+device/version): Chrome latest
Any other tested browsers/devices(OK/FAIL): nope
URL (minimal example if possible): eg.g https://openui5.hana.ondemand.com/#/sample/sap.ui.core.sample.TypeDateAsDate/preview
Steps to reproduce the problem:
- start console with statement: sap.ui.core.format.DateFormat.getDateInstance({pattern: "YYYYMMdd", strictParsing:true}).format(new Date("Jan 01 2006"));
- Expected result: 20060101
- What happens instead: 20050101
Any other information? (attach screenshot if possible)

You need yyyy instead of YYYY because of the way calendar weeks are taken
For more details https://github.com/SAP/openui5/issues/2370
You need yyyy instead of YYYY because of the way calendar weeks are taken
For more details #2370
i see, i see -> rtfm, thanks and sorry for the inconvenience
no problem :)