Jump to content

Turn MySQL date into nice-reading PHP date


markkanning

Recommended Posts

Hey all,

I've got some news articles in a DB that each have a date field(formatted as YYYY-MM-DD). I simply want to SELECT them from the DB, ORDER BY the date, them loop them with the date reading like "January 14, 2006". Is there a simple PHP string formatting method for turning 2006-01-14 into January 14, 2006?

 

Thanks,

mk

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.