how to format a date variable
| From: | Carlos Fernando Scheidecker Antunes | Date: | Thu, 17 May 2001 22:15:41 +0000 |
| Subject: | how to format a date variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53331@lists.php.net to get a copy of this message | ||
Hello All,
If I issue the comand date(d."/".m."/".Y."
".H.":".i.":".s)
I get the Today's date and time formated accordingly.
I can do the same with MySQL by using an internal function on the SQL select statement.
I've got a variable that is a MySQL native Date field but it was not and cannot be formated
during the SELECT statement. This statement fills a variable called $OrderDate which is them used
for lots of operations.
So what I need is to format variable $OrderDate to Day/Month/year Hour:Min:Sec.. How can I do it the
same way as the Date() function above?
Thank you all!