liamloveslearning Posted May 16, 2010 Share Posted May 16, 2010 hi everyone, I have a date being called from my db and being outputted as yyyy-mm-dd, is there a way to formate it so it displays dd/mm/yyyy? My current code is <div class="KT_col_intraartapproval"><?php echo KT_FormatForList($row_rsworksorders1['intraartapproval'], 20); ?></div> Link to comment https://forums.phpfreaks.com/topic/201973-php-date-format/ Share on other sites More sharing options...
Mchl Posted May 16, 2010 Share Posted May 16, 2010 $formattedDate = date('d/m/Y',strtotime($dateFromDatabase)); Link to comment https://forums.phpfreaks.com/topic/201973-php-date-format/#findComment-1059225 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.