_Chris Posted December 8, 2012 Share Posted December 8, 2012 I have been working on this: <?php date_default_timezone_set('GMT'); #echo date("l, \\t\h\e jS of F, Y"); echo date('l, \\t\h\e dS \of F, Y', strtotime('-2 weekdays')); ?> But, it comes out as : Wednesday, the 05th of December, 2012 Is there any way of the 0 in the 05th being omitted please? Any help appreciated. Chris Quote Link to comment https://forums.phpfreaks.com/topic/271742-how-do-you-take-the-zero-off-please/ Share on other sites More sharing options...
trq Posted December 8, 2012 Share Posted December 8, 2012 Have you looked at the manual? date. It is surely quicker than asking here and waiting for a response. Quote Link to comment https://forums.phpfreaks.com/topic/271742-how-do-you-take-the-zero-off-please/#findComment-1398209 Share on other sites More sharing options...
Andy123 Posted December 8, 2012 Share Posted December 8, 2012 Have you looked at the manual? date. It is surely quicker than asking here and waiting for a response. This. Use jS instead of dS. Quote Link to comment https://forums.phpfreaks.com/topic/271742-how-do-you-take-the-zero-off-please/#findComment-1398214 Share on other sites More sharing options...
_Chris Posted December 27, 2012 Author Share Posted December 27, 2012 This. Use jS instead of dS. Many thanks Andy, did that and it works a treat! Quote Link to comment https://forums.phpfreaks.com/topic/271742-how-do-you-take-the-zero-off-please/#findComment-1401554 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.