How to compare two dates without years in php?
<p>I would like to compare the two dates ,one date is which the 02 aug 1921 , and the second date is present date.How to compare the old date and present date day and month .if the past date 02 sept and present date 02 sept equals it should echo. I had the script which compares the past and present date with the year.How to compare without the year.?</p>

<pre><code>$r1=$row['dateofcon']; 
</code></pre>

<p>//dateofcon was 02 aug 1921.</p>

<pre><code>echo $r1; ?&gt;
$cmg1 = strtotime("$r1");
$day1=date('l',$cmg1);
$now1 = time();
$timeleft1 = $cmg1-$now1;
$daysleft1 = round((($timeleft1/24)/60)/60); //probably...
if($daysleft1 == 0) { 
echo "Happy Conday";}
</code></pre>
