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.?
$dateset = ($_POST['datefield'] == '') ? '0000-00-00' : $_POST['datefield'];
//where datefield is the name of the date input field - change it to match yours!
This topic is now closed. New replies are no longer allowed.