$date = new DateTime();
$date = DateTime::create('2022-12-31');
$date = DateTime::create('2022-12-31 23:59:59');
$date = DateTime::create('+1 week');This will create a new DateTime object set to one week from the current date and time. The PHP DateTime class is a part of the PHP Standard Library.