date shows 1984 in php code example Example: php code to display current date and time in different formats echo date('Y.m.d H:i:s');