Formatting php S suffix for date
Posted: Wed Dec 10, 2008 3:57 am
Hi all,
I have got a date session vailable on my page and I write out the date in the following way :
<?php echo format_date($_SESSION['booking']['from']); ?> and it returns Wed 17 December 2008.
I was wondering if there is a way to format it so that it would come out like Wed 17th December 2008 ?
Many thanks
I have got a date session vailable on my page and I write out the date in the following way :
<?php echo format_date($_SESSION['booking']['from']); ?> and it returns Wed 17 December 2008.
I was wondering if there is a way to format it so that it would come out like Wed 17th December 2008 ?
Many thanks