Date format for the application can be configured within Admin - Localisation screen via a Admin user. this format is universal for the application and once changed all places should be updated. This format is only used for the display purposes and all the communication between BE/FE via API is carried out via single date format that is not user changeable. (Hence the distinction display format and io format)
The tokens (symbols) that is used between PHP and JavaScript languages are different when using date format.
- PHP Tokens => https://www.php.net/manual/en/datetime.format.php
- JS (date-fns) Tokens => https://date-fns.org/v2.28.0/docs/format
Consider date with format 2022-05-11 (Year-month-date)
- PHP Format -
Y-m-d