PHP finding the expired time in seconds
<p>Let say we have start date and end date</p>

<pre><code> if (isset($_POST['start_date']))
    $_POST['start_date'] = gmdate('Y-m-d H:i:s', strtotime($_POST['start_date']));

 if (isset($_POST['end_date']))
    $_POST['end_date'] = gmdate('Y-m-d H:i:s', strtotime($_POST['end_date']));
</code></pre>

<p>would  <code>$_POST['end_date'] - $_POST['start_date']</code> give you the expired time in seconds?</p>
