Stuck with date compare in php
<pre><code>&lt;?php
date_default_timezone_set('America/Los_Angeles');

$urlYear = '2013';
$currentYear = date('Y');
$systemDate = date('d-m-Y');

 if ( ($systemDate &gt;= '01-06-'.$currentYear) || ($currentYear &lt; $urlYear) ) {
        echo 'Here are your results &lt;br&gt;';
        echo 'System Date '.$systemDate.' '.$currentYear.' '.$urlYear;
    } else {
        echo 'No results for you';
    }
?&gt;
</code></pre>

<p>What I'm trying to achieve is:</p>

<pre><code>(If the current date as formatted by me is &gt;= '01-06'-year of the current year) 
    OR 
(if the $currentYear &lt; $urlYear)
//echo 'Here are your results';
</code></pre>

<p>But I seem to be getting true for everything. Can you pls help?</p>
