oops, > i'd do this: > if(time() > strtotime(date('Y-m-d', $OrderDate) . ' 8:00 pm')) > thought $OrderDate was a timestamp already -- you'd need an extra strtotime: if(time() > strtotime(date('Y-m-d', strtotime($OrderDate)) . ' 8:00 pm'))