title: Convert date to integer (timestamp)
body: <p>In mysql , the <code>data type</code> is <code>integer</code>... And I want to save date as <code>1422104820</code> format (<em>timestamp</em>).</p>
  
  <pre><code>$Date = $_POST['Date'];
  $Time = $_POST['myTime'];
  $Date1 = $Date.$myTime;
  
  insert into table ('date') values ($Date1);
  </code></pre>