Answers for "php current date for mysql"

PHP
2

php current date

# Current date
date_default_timezone_set('Asia/Kolkata'); 
echo date("Y-m-d H:i:s"); 

# Current Time
date_default_timezone_set("America/New_York");
echo "The time is " . date("h:i:sa");
Posted by: Guest on March-03-2021
1

php get current datetime mysql format

date('Y-m-d H:i:s');
Posted by: Guest on April-22-2020

Browse Popular Code Answers by Language