title: How to solve PHP date() NULL value 1969?
body: <p>cI use jQuery calendar date picker on my form. When the date is not filled, it always shows "1969-12-31" value. I did not want to show this value, 0000-00-00 is fine for me.</p>
  
  <p>My MySQL date column is <code>receive_dt DATE NOT NULL,</code></p>
  
  <p>This is a snippet code from the PHP file to handle the form.</p>
  
  <pre><code>...
  
  $rcv_dt = $_POST['receive_dt'];
      list($year,$month,$day)=explode('/',$rcv_dt);
      $timestamp=mktime(0,0,0,$year,$month,$day);
      $receive_dt=date('Y-m-d',$timestamp);
  
  ..., receive_dt) VALUES (....,'$receive_dt')...
  </code></pre>
  
  <p>I've tried to do the strtotime() but no luck.</p>
  
  <pre><code>$receive_dt=date('Y-m-d', strtotime($rcv_dt));
  </code></pre>
  
  <p>I've even changed the MySQL <code>reveive_dt column to DATE NULL</code>, but still no luck.</p>