Get Current date time in laravel


Get Current date time in laravel : You can use datetime class to get current date time in laravel.


Get Current date time in laravel


$date = new DateTime();
echo $date->format('Y-m-d H:i:s');

The above method will give the current date time.


Advertisements

Add Comment

📖 Read More