I have an articles page that I’m sorting via date.
sort: date asc
My question: is there a way to change this date format MM/DD/YYYY across the entire panel? I understand how those changes would be made in the template, but I couldn’t dig up an example of this change in the panel.
If you really need to change this, you would have to manipulate the panel core code …
For anyone stumbling over this thread including future-me:
It’s (now?) possible to change the date format in the panel by using the
Guys, this page in the docs seems to have incorrect information. It is advising us that if we want date-ordered pages in the Panel to show using specially formatted dates, we should use a ‘format’ option, like this (straight from the docs):
It seems we should be using ‘display’ instead of ‘format’, like this:
There are in fact two options:
- format: is used for the date prefix in the file system (folder name)
- display: is used for displaying the date in the Panel Sidebar/Pages View
The second option was undocumented, but I just added it.
(The date field itself also has a format option. This format option, however, refers to how the date is displayed in the date field, not how it is saved to file.)
Thank you for the explanation, @texnixe - and for being so prompt with the update! Wow!!!