I have set my app settings to use en-GB for my locale. I can see the locale code in startup.cs
I also have my dev box configured for UK region, default short date format is dd/MM/yyyy
In the designer, If I goto the data option and Infer schema and create crud pages the page date format defaults to MM/dd/yyyy. Why? I don't use this format anywhere, surely this should at least come from locale PC region settings in the first instance or via the locale settings. If I change it it doesn't get saved, it keeps defaulting back to MM/dd/yyy which is a pain when creating pages as its easy to overlook. Leaving it blank causes inconsistent formats across page types.
I would like my dates to globally adopt a setting, makes sense to be short date format d .
If its left blank in the formatting property I would expect is to assume a short date format for example - however the date then appears as YYYY-mm-dd format, where did that come from?
It seems to differ between the crud table pages and the add/edit pages. If I create a new set of crud pages the grid page will show a default format different to the add/edit page, related to 1 I think.
As a result I have to do through and manually change all of my date formats to my choice, dates appear everywhere, it s a project that's getting larger each day and it will take a while Ideally I want them cleared out and default to a common default and then on a case by case basis tweak any where I need a different format.
Any suggestions for setting a consistent global data format for existing and new pages?
Update: I went through the .json files and removed all date formatting and rebuilt app.
As an example, you can see the different formatting at runtime between the edit page, the grid view page in the background and the d format dd/MM/yyyy for the dev box/server its running on. (don't know if browser location plays a part in the formatting based on where it thinks you are?)