How to find current date and time in PHP?

Last updated 5 years, 1 month ago | 1352 views 75     5

Tags:- PHP

PHP |  date() function

By using the PHP date() function we can find the current date and time.


echo date(“d-m-Y”); //This will print today date.

echo date (“d-m-Y h:i:s”) // This will print today’s date with current time.