Jump to content

How to format a date input using HelperForm?


andresams

Recommended Posts

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 by andresams (see edit history)
Link to comment
Share on other sites

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...