In my PHP application, I am trying to compare date time values, for example:
if($datetime_from_db < date('Y-m-d H:i:s'))
{
// then do something
}
Both values ββare in the same format. I cannot understand why it only compares the date and ignores the time. Date and time values ββare important to me, but I donβt know how to make it work.
source
share