i am using jquery ui date picker for take fromDate and toDate
Following is the code of from date
<input name="from_date" id="from_date" maxlength="20" size="20" type="text"/>
$("#from_date").datepicker({
dateFormat: 'M dd, yy',
showButtonPanel: true,
changeMonth: true,
changeYear: true,
defaultDate: null
});
now i use the form to take the value in POST varible using PHP
If the fromDate field is blank then it take value ‘1970-01-01‘ i want it blank
Change your PHP function is use empty instead of null