title: jquery datepicker format to unix timestamp with fix hour
body: <p>I am using a datepicker within a form which returns the date format F jS, Y (e.g. November 6th, 2013). The mysql database is set up to use Unix Timestamp which is a 10 digit format. I am now looking for a way to pass the form field value (which is November 6th, 2013) in a unix timestamp format into the database, but unfortunately it wont work.</p>
  
  <p>Here is my controller code:</p>
  
  <pre><code>    $insertData['enddate']  = $this-&gt;input-&gt;post('openDays');
  </code></pre>
  
  <p>I tried the following:</p>
  
  <pre><code>    $oldenddtime = $this-&gt;input-&gt;post('openDays');
      $newenddate = int variant_date_to_timestamp ( $oldenddtime );
      $insertData['enddate']  = $newenddate;
  </code></pre>
  
  <p>The db result now is 0... Any idea of what I am doing wrong here?</p>
  
  <p>Once this is resolved, I would need to hour within the timestamp to be ALWAYS 5pm on the selected date...</p>
  
  <p>Thanks in advance ;)</p>