Date formatting issue
| From: | Don Don | Date: | Tue, 05 Aug 2008 15:48:18 +0000 |
| Subject: | Date formatting issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-277732@lists.php.net to get a copy of this message | ||
Hi all,
I've got dates in the following formats e.g.
August 05, 2008, 10:14 am (e.g. today's date)
August 04, 2008, 7:08 am (e.g. yesterda's date)
August 03, 2008, 9:08 am (e.g. in the past)
I am trying to format these dates do I can display them like this
Today at 10:14 am (today)
Yesterday at 9:08 am (yesterday)
August 03, 9:08 am (if its not today or yesterday then display the month and day and time only)
Can anyone help with tips on how to achieve this ?
Cheers