title: How to compare todays date time with given date time, date time format is like date('d M Y - H:i A')
body: <p>i want to compare current date &amp; time with database date &amp; time, the condition is </p>
  
  <pre><code>if($current_date &gt; $given date) { 
      echo "deactive status"; 
  }
  </code></pre>
  
  <p>main problem is date format is <code>date('d M Y - H:i a');</code> i want to compare this format only</p>