title: A non well formed numeric value encountered
body: <p>I'm working on a project in which I need to match two dates. One stored in the database and one is the current date time. I've decided to use unix timestamp for this. I'll convert these both values to unix timestamp and would then compare.</p>
  
  <p>I used the below code to generate the unixtimestamp, but it gave me the following error :-
   <strong>A non well formed numeric value encountered</strong></p>
  
  <p>I have gone through half a dozen questions on stack overflow, but none helped my case.</p>
  
  <pre><code>$date =date("Y-m-d H:i:s A");
  echo mktime($date);
  </code></pre>
  
  <p>What might be the solution ?</p>