RE: [PHP] Date Formatting
| From: | Jason Murray | Date: | Wed, 13 Sep 2000 06:32:05 +0000 |
| Subject: | RE: [PHP] Date Formatting | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16495@lists.php.net to get a copy of this message | ||
> I have a date in a table in the format d-m-y, but when it is
> read out onto the screen it comes out in the opposite order.
> What I am hoping to do is get it into m-d-y order, or better
> still long format (eg. 9th September, 2000). Does anyone
> know if this is possible, and if so how it is done?
Get it into a unix timestamp format (splice the result string into bits
and then use mktime() on them. From a unix timestamp you can do pretty
much anything you like with it.
Jason
(who seems to recall answering pretty much the same thing yesterday?)