Forum Moderators: coopster

Message Too Old, No Replies

php date help

         

BlackRaven

4:46 am on Apr 25, 2007 (gmt 0)

10+ Year Member



I am trying to show how old a post in my mysql db is, the date field is using the mysql date/time stamp [2007-04-24 17:45:18] and i need to compare compare this date with the one from NOW(). Also how to convert the result so that it returns in the format like [1 Days 14 hrs]?

capulet_x

5:56 am on Apr 25, 2007 (gmt 0)

10+ Year Member



Blackraven , I had a similar problem not too long ago.

[webmasterworld.com...]

I hope this helps.

also try:

date("H:i:s");