Jump to content

Format the date & time from the db?


Solarpitch

Recommended Posts

Hey guys,

when I pull the date and time from the DB it displays as "2007-01-09 20:17:40" and I would like it to display as "9th January 2007, 8:20pm". How can I do this after retrieving it from the database . . or even set this as the format when its actually set in the DB in the first place.

Thanks!
Link to comment
https://forums.phpfreaks.com/topic/34020-format-the-date-time-from-the-db/
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.