Datepicker blank field (1970-01-01)

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.?

Thank you :slight_smile:

$dateset = ($_POST['datefield'] == '') ? '0000-00-00' : $_POST['datefield'];
//where datefield is the name of the date input field - change it to match yours!

Thanks spikeZ