Jump to content

Day format with datetime?


kevin_newbie

Recommended Posts

Hello,

 

I have noticed that sites usually format dates of entries like: "Submitted 1 hour ago. or Submitted 1 day 2 hours ago. "

 

What is the logic of doing something like this? Right now I have the date already inserted in the db along with the entries and just want to be able to format with days instead of the traditional Jan. 25th 2009 @ 4:25pm.

 

Thanks,

 

kevin_newbie.

Link to comment
https://forums.phpfreaks.com/topic/189800-day-format-with-datetime/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.