⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Datepicker Format DD/MM/YYYY



marioromero78

marioromero78
  • profile picture
  • Member

Posted 11 March 2015 - 20:28 PM

Hi friends! I need this date format 'DD/MM/YYYY' for my site. So, I configure the parameter $config['grocery_crud_date_format'] = 'uk-date'. I store all date fields with the standard format "YYYY-MM-DD" in DB.

 

Now, I have a problem with the jquery datepicker... it seems stuck in us-date format, I don't know why. Do I have to set the date format in other place?

 

I've try this with no luck 

$( ".datepicker-input" ).datepicker( "option", "dateFormat", "dd-mm-yy" );

Can anyone give me a hint?

Thanks!

 

Mario


marioromero78

marioromero78
  • profile picture
  • Member

Posted 11 March 2015 - 23:45 PM

Ok, my mistake. I didn't realize that the template I was using had another instance of Jquery UI Datepicker!  :wub: