N-Bomb(Nerd) Posted November 30, 2009 Share Posted November 30, 2009 Actually, I lied.. I have two questions. I'm using the TIMESTAMP() function within mysql to set the date/time for certain events. However, how would I go about formatting the output? For example it would display "2009-11-30 02:48:40".. how can I change that formatting around? Also, I wanted to do a sort to display items within my table monthly.. is there anything I can use to only pull/sort data by the month? Link to comment https://forums.phpfreaks.com/topic/183394-date-question/ Share on other sites More sharing options...
trq Posted November 30, 2009 Share Posted November 30, 2009 date. BETWEEN. Link to comment https://forums.phpfreaks.com/topic/183394-date-question/#findComment-968003 Share on other sites More sharing options...
Cardale Posted November 30, 2009 Share Posted November 30, 2009 When selecting the date from the database with your query you need to format it through MYSQL. Example SELECT date_FORMAT(thedate, '%M %e, %Y, %l:%i%p') as newdate FROM your_table; Link to comment https://forums.phpfreaks.com/topic/183394-date-question/#findComment-968005 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.