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 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] 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 Link to comment https://forums.phpfreaks.com/topic/11408-solved-format-date/#findComment-42793 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.