Jump to content


Datepicker Format DD/MM/YYYY

datepicker date format

  • Please log in to reply
1 reply to this topic

#1 marioromero78

marioromero78

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 11 March 2015 - 08: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



#2 marioromero78

marioromero78

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 11 March 2015 - 11:45 PM

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







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users