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 Quote 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']));?> Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/209097-date-format/#findComment-1092089 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.