Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySql PHP date conversion

Status
Not open for further replies.

rrobertson1979

Technical User
Apr 13, 2004
2
US
I currently have a DB storing event dates. They are stored in the format yyyy-mm-dd. This format I need so I can run a query to only show results for the next 7 days. However, I would like to display the date in PHP in the format "Wednesday, March 2", not 2005-03-02.

Any suggestions would be greatly appreciated!!
 
echo date("l, F j", $rows['db_date']);

Bastien

I wish my computer would do what I want it to do,
instead of what I tell it to do...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top