An7hony Posted July 28, 2010 Share Posted July 28, 2010 Hi Guys Could somebody tell me how i would put a line break into the code below i.e: 1.07 <br /> 2010 <?php echo date('d.m.Y',strtotime($news['created_at']));?> Thanks for your help Link to comment https://forums.phpfreaks.com/topic/209097-date-format/ Share on other sites More sharing options...
aleX_hill Posted July 28, 2010 Share Posted July 28, 2010 <?php echo date('d.m',strtotime($news['created_at'])) . "<br>" . date('Y',strtotime($news['created_at']));?> Link to comment https://forums.phpfreaks.com/topic/209097-date-format/#findComment-1092058 Share on other sites More sharing options...
An7hony Posted July 28, 2010 Author Share Posted July 28, 2010 cool thanks works great much appreciated Link to comment https://forums.phpfreaks.com/topic/209097-date-format/#findComment-1092089 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.