willpower Posted June 7, 2006 Share Posted June 7, 2006 HiI have a variable stored in a DB using the DATETIME methodI now need to format thatI can format using the $now=date (jS, M etc) methodbut how do I do it for a defined variable from the DB?ThanksWill Quote Link to comment https://forums.phpfreaks.com/topic/11408-solved-format-date/ Share on other sites More sharing options...
ober Posted June 7, 2006 Share Posted June 7, 2006 [code]echo date("n/j/Y h:i:s A", strototime($row['column_name']));[/code] Quote Link to comment https://forums.phpfreaks.com/topic/11408-solved-format-date/#findComment-42791 Share on other sites More sharing options...
willpower Posted June 7, 2006 Author Share Posted June 7, 2006 Thanks matey!Hope you are wellWill Quote Link to comment https://forums.phpfreaks.com/topic/11408-solved-format-date/#findComment-42793 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.