Jquery Datepicker Set To Null
I have a problem with setting a date to Null in my table. I have datepicker that is by default blank (and when I save, it return to DB as 0000-00-00 but I want to set as Null. In c
Solution 1:
It is recommended that you should set minimum DateTime value in the table of your DataBase instead of null for dates.
Whereas if you want to store in string format, then you can use :
$('#datum_kontakta_picker').val() ? $('#datum_kontakta_picker').val() : null;
Post a Comment for "Jquery Datepicker Set To Null"