I\'m having problems getting the date inserted properly into my database.
$date = date(\'m/d/Y h:i:s\', time());
I use this format, and, it
Try this
$('#datepicker2').datepicker('setDate', new Date('=$value->fecha_final?>'));