I read a recent question about using date formats in forms, and using the code works OK in Google Chrome, but in Firefox and Safari it is not working.

The default date is shown like YYYY-mm-dd, while the datepicker renders a dd-mm-YYYY field. After submitting, I get an error about the date format. When I use $form_element['#date_date_element'] = 'text', it works OK, but I do not get a datepicker.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.