My version is 1.8.1.0 (Community Edition).
I have a problem with the date format in magento frontend especially in the advanced search. I have add a custom attribute "event_date" with input type "Date".
Under Configuration->General I've set the locale to "France" and under Configuration->Catalog->Date & Time Custom Options I've set the Date Fields Order to Day/Month/Year.
But when I select a date in frontend with the datepicker in advanced search it adds it in US format. (Month/Day/Year)
What's really strange: The search only works with US format but the search validator expects the date format in d/m/y. I found out that the date format is hardcoded in "app/code/core/Mage/CatalogSearch/Block/Advanced/Form.php". If I change it in this file the calendar and validator work in the right format but I get no results because the search still needs the US format.
So what's the best way to force Magento to work in a specified date format?
UPDATE:
I also found out, if I set the browser prefered language to en_US the validation works with US (Month/Day/Year) format. So Magento seems to check the client locale and set the date validation to it, but not the date format from calendar or search itself.
UPDATE 2:
After I got no response I posted the same question but with a different description under https://magento.stackexchange.com/questions/16257/date-format-in-advanced-search.
Please have a look there. Finally I could solve 2 of the 3 problems so that my advanced search now runs with en_US date format. The last problem is: Where in code the db query is build for the advanced search and how can I switch to another date format? It seems like en_US date format is hardcoded.