Jump to content

Date Conversion


adamwhiles

Recommended Posts

I have a field in my database that holds a date like so: 2006-06-23

I want to convert that with php so I can print it out like this: June 23, 2006

I need to keep the format of the date in the table because it needs to be 2006-06-23 due to another script that uses the date in that format.

So how can i use PHP to pull the date out of the database and convert it to the longer format?
Link to comment
https://forums.phpfreaks.com/topic/13053-date-conversion/
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.