php get current time and date
snippet in php

php date now

user7973


 <?php
echo "Today is " . date("Y/m/d") . "<br>";
echo "Today is " . date("Y.m.d") . "<br>";
echo "Today is " . date("Y-m-d") . "<br>";

 echo "Today is " . date("l");
?> 

php get current time and date

user2836

date("Y-n-j G:i:s");
//-->2020-10-29 23:27:15

show date php

user4340

check here link:   http://www.eltcalendar.com/stuff/datemysqlphp.html