andresams Posted September 5, 2014 Share Posted September 5, 2014 (edited) I have a date input on my form, but the date format used is YYYY-mm-dd. However, the default date format on my prestashop config is dd/mm/YYYY. All the other controllers are using the default date format, except the controller created by me. How can I change the date format? This is my field: array( 'type' => 'date', 'name' => 'data_inicial', 'label' => $this->l('Date:'), 'filter_key' => 'a!data_inicial', 'size' => 10, 'required' => true ) Edited September 5, 2014 by andresams (see edit history) Link to comment Share on other sites More sharing options...
Lorem Ipsum Posted June 21, 2016 Share Posted June 21, 2016 Hi, I have the same need, did you find the solution since? Romain. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now