Get user submitted date into a variable
<p>I want to get the date from the user and compare that date to another one. How can I store the submitted date in a variable?</p>

<p>I tried this code:-</p>

<pre><code>$month = 2;
$year = 2012;

$saturday = strtotime('First Saturday '.date('F o', mktime(0,0,0, $month, 1, $year)));
echo date('Y/M/d', $saturday);
</code></pre>

<p>In <code>$saturday</code> I calculated the date now I want to take another date from the user and compare that date to <code>$saturday</code>.</p>

<p>How can I do this?</p>
