php get unixtime 1 day ago code example Example: php strtotime 1 day ago from date('Y-m-d', strtotime('+1 day', strtotime($date)))