In PHP, you can create a new DateTime object with the current date and time by using the now
keyword. Here's an example:
$currentDateTime = new DateTime('now');
This will create a new DateTime object with the current date and time based on the default timezone setting in your PHP configuration.