RE: reversing a date stamp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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. 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux