php get current date with format code example
Example 1: php code to display current date and time in different formats
echo date('Y.m.d H:i:s');
Example 2: php get current datetime mysql format
date('Y-m-d H:i:s');
echo date('Y.m.d H:i:s');
date('Y-m-d H:i:s');