RE: [PHP-DB] reversing a date stamp
| From: | John W. Holmes | Date: | Thu, 05 Dec 2002 17:46:00 +0000 |
| Subject: | RE: [PHP-DB] reversing a date stamp | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23843@lists.php.net to get a copy of this message | ||
> I'm using the below code as the basis for a client updateable news
> section..
> I have variable called date which is set in the db as TIMESTAMP(6).
When I
> print it i get the date in the reverse order YYMMDD. What would be the
> best
> way to display it in reverse based on my code below?
Just use strrev() to reverse the string.
---John Holmes...
---Sometimes you get what you ask for.