i can\'t insert the values from my JQuery Datepicker to my MySQL database with Date datatype. how will i convert string to date datatype? im using Codeigniter with MVC. here\'s
$(document).ready(function() {
var year=new Date().getFullYear();
var yearTo=year-18;
var yearFrom=year-100;
//display the years from hundred years in the past till 18 years in the past
$( "#datePickerDOB" ).live("click",function(){
$( "#datePickerDOB" ).datepicker({
changeMonth: true,
changeYear: true,
yearRange: yearFrom+":"+yearTo,
dateFormat: "dd-mm-yy"
});
});
});