convert yyyy/mm/dd to mm/dd/yyyy, how?
| From: | Sander Peters | Date: | Sun, 13 Jan 2002 19:56:17 +0000 |
| Subject: | convert yyyy/mm/dd to mm/dd/yyyy, how? | ||
| Groups: | php.db php.general | ||
| Request: | Send a blank email to php-db+get-15721@lists.php.net to get a copy of this message | ||
Hello everybody,
convert yyyy/mm/dd to mm/dd/yyyy, how?
MYSQL does everything in yyyy/mm/dd.
I live in the Netherlands and we are use to the format dd/mm/yyyy.
What's the best way to display it as mm/dd/yyyy in a table on a query?
My first idea whas to split the date up in vars in php and then print
the vars in the way I like it
Is this a bad idea? Or are there better sollutions?
Thanx in advance for answering!
--
Met vriendelijke groet / With Greetings,
Sander Peters
site: http://www.visionnet.nl/
email: mailto:s.peters@visionnet.nl
webmail: mailto:sanderpeters@yahoo.com