jemz — 2013-05-21T23:00:24-04:00 — #1
Hi, I have problem in datepicker when my datetextfield is blank it will insert into my database as 1970-01-01,how do i make it 000-00-00 or null in my database.?
spikez — 2013-05-22T04:42:10-04:00 — #2
$dateset = ($_POST['datefield'] == '') ? '0000-00-00' : $_POST['datefield'];
//where datefield is the name of the date input field - change it to match yours!
jemz — 2013-05-23T22:23:52-04:00 — #3
system — 2014-10-08T00:16:53-04:00 — #4
This topic is now closed. New replies are no longer allowed.