```
$star_time = "2015-05-15 09:30 PM";
$end_time  = "2015-05-15 09:40 AM";

```

when comparing these two date/time it's showing that $end\_time bigger than $star\_time when $star\_time actually is bigger because the time at night while $end\_time in the morning!!!

why the comparison disregard AM/PM ?

thank you

```
if($star_time > $end_time)
echo $star_time .">". $end_time;
else
echo $star_time ."<". $end_time;

```