php - comparing two date
<p>i have following code i am trying to compare two get in order to get into if statement but i something wrong with is code.</p>

<p><strong>the following code should run if the time is above 23:29 and less then 08:10...</strong></p>

<pre><code>$gettime="04:39"; // getting this from database

$startdate = strtotime("23:29");
$startdate1 = date("H:i", $startdate);

$enddate = strtotime("08:10");
$enddate1 = date("H:i", $enddate);


//this condition i need to run    

if($gettime &gt;= strtotime($startdate1) &amp;&amp; $gettime &lt;= strtotime($enddate1))
{
echo"ok working";
}
</code></pre>

<p>please help me in dis regard</p>

<p>thanks</p>
