Guys,
I've been using PHP for a few months coming from ASP and have to comment that the date support/confusion in PHP is ridiculous, needs entirely rethinking in my opinion...but anyway!
I'm building a large site and have used MYSQL TimeStamps throughout most of the DB tables.
I'm not listing some results from one of the tables and have dates outputing from MYSQL in this format for example...
2008-11-08 13:35:38
What I want to do is output the contents of the table into PHP, sorted by date order - I then want to list the results for instance in...
TODAY
result row 1
result row 2
result row 3
YESTERDAY
result row 4
result row 5
result row 6
(then to list each day in groups...)
07/11/08
result row 7
result row 8
06/11/08
result row 9
result row 10
Can someone help me to achieve this as I'm completely stuck...not with the looping necessarily but with the date comparison?
Is there no simple 'FormatDateTime' as there is in ASP?