date format php return tomorrow code example Example: php tomorrow $tomorrow = new DateTime('tomorrow'); echo $tomorrow->format('Y-m-d');