--- "John W. Holmes" <holmes072000@charter.net> wrote: > > 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. But that will turn 021205 into 502120, whereas I assume he's trying to do 051202. You can parse and reorder the string using substr() or you can using the date() and mktime() functions. -M > > > > > > ---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 > > > > > ===== > Mark Weinstock > mark_weinstock@yahoo.com > *************************************** > You can't demand something as a "right" unless you are willing to > fight to death to defend everyone else's right to the same thing. > -Stolen from the now-defunct Randy's Random mailing list. > *************************************** > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > ===== Mark Weinstock mark_weinstock@yahoo.com *************************************** You can't demand something as a "right" unless you are willing to fight to death to defend everyone else's right to the same thing. -Stolen from the now-defunct Randy's Random mailing list. *************************************** __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php