European date formats and the date helper - can't display or store
Permalink
Hello all
I have scoured the forums and banged my head against the table (thrice) but I can't for the life of me solve this problem.
I have a Dashboard page where users can create new pages, including setting cDatePublic and a custom date attribute called closing_date. I'm trying to get the dates specified by those two inputs (both Date inputs) to save and be retrieved in European format (dd/mm/yy).
I can set, update and display the dates fine when the date format is the default US, but the only thing I can do with dd/mm/yy is display them on the page using PHP's date() function.
I can't display them as the current value in the form widgets (the date helper widget defaults to today's date, even when I pass it a value formatted using date()). I need the generated form elements to display the date as dd/mm/yy. Changing the date format in site.php, in the date_time.php helper and in jquery.ui.js doesn't help.
Can anyone help?
I have scoured the forums and banged my head against the table (thrice) but I can't for the life of me solve this problem.
I have a Dashboard page where users can create new pages, including setting cDatePublic and a custom date attribute called closing_date. I'm trying to get the dates specified by those two inputs (both Date inputs) to save and be retrieved in European format (dd/mm/yy).
I can set, update and display the dates fine when the date format is the default US, but the only thing I can do with dd/mm/yy is display them on the page using PHP's date() function.
I can't display them as the current value in the form widgets (the date helper widget defaults to today's date, even when I pass it a value formatted using date()). I need the generated form elements to display the date as dd/mm/yy. Changing the date format in site.php, in the date_time.php helper and in jquery.ui.js doesn't help.
Can anyone help?
http://www.concrete5.org/community/forums/customizing_c5/non-us-dat...