MySQL stores the date in my database (by default) as \'YYYY-MM-DD\' The field type for my date is \'DATE\' (I do not need any time storage).. Is there a simple way to change
i'm using this script and put it on upper line.
$(function(){ var pickerOpts = { dateFormat: "yy-mm-dd" }; $("#datepicker").datepicker(pickerOpts); });
and this one in your form.
It will appear as d/m/y on your page but in your database y/m/d.