Home > Article > Backend Development > Time format issues in PHP4 and PHP5_PHP tutorial
PHP5 used on my own computer.
PHP4 used on the server.
Time on my own machine, 2008-2-14 14:56:29
Write the program and upload it, and it will become a string of numbers. 1202972189
Database access.. Field default value Now()
Solution:
This is no problem, this number is the Unix timestamp, which means since 1970-1 -1 to the current number of seconds, generally need to be formatted and displayed
date('Y-m-d',1202972189)
The result is 2008-02-14