Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Dates in PHP and MySQL

I see a lot of people on forums and on my training courses asking about the best way (or any way) to manage dates stored in a MySQL database and used in PHP. Three options follow, but first the problem.PHP uses unix timestamps for all its date functionality. It has methods to convert these timestamps into pretty much any text format you could want but internally it uses the timestamp format. A timestamp is simply an integer. Specifically, it’s the number of seconds that have elapsed since midnight on January 1st 1970 (greenwich mean time).MySQL has three date types f...

2,840 0       PHP COMPARISON MYSQL DATE FORMAT DATE DATE COMPARE