strtotime not working with TIME?
<p>My mysql column has this datetime value, <code>2011-04-11 11:00:00</code> when I am applying strtotime then its returning date less than today,whereas it should be greater than today.</p>

<p>also when I am trying this <code>strtotime(date('d/m/Y h:i A'));</code> code, its returning wrong values. Is there any problem with giving TIME in strtotime?</p>

<p>Basically I want to do, is to compare my mysql column date with today's date, if its in future then show "Upcoming" else show nothing?</p>

<p>Please help and advise, what should I do? </p>

<p><strong>Edited</strong> code</p>

<pre><code>$_startdatetime = $rs['startdatetime'];
$_isUpcoming = false;
if(!empty($_startdatetime)){
    $TEMP_strtime = strtotime($_startdatetime);
    $TEMP_strtime_today = strtotime(date('d/m/Y h:i A'));
    if($TEMP_strtime_today &lt; $TEMP_strtime){
        $_isUpcoming = true;
        $_startdatetime = date('l, d F, Y h:i A' ,$TEMP_strtime);
    }
}
</code></pre>

<p>And the value in <code>$rs['startdatetime']</code> is <code>2011-04-11 11:00:00</code>. And with this value I am getting following output.</p>

<pre><code>$TEMP_strtime - 1302519600
$TEMP_strtime_today - 1314908160
$_startdatetime - 2011-04-11 11:00:00 
</code></pre>

<p><code>$_startdatetime</code> its value is not formatted as the upcoming condition is false, so returning as is mysql value.</p>
