Re: Date format
| From: | Mike Frazer | Date: | Fri, 01 Feb 2002 19:15:05 +0000 |
| Subject: | Re: Date format | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83136@lists.php.net to get a copy of this message | ||
$today = date("d/m/Y");
That will get the current date and dump it in the format you asked for
(DD/MM/YYYY, complete with leading zeros).
Mike Frazer
"Rick Emery" <remery@excel.com> wrote in message
news:EAA093B474ABD311A71E00508B5FE08305C2D088@adntex03.us.excel.com...
list($y,$m,$d) = explode(",",$phpdate);
$newdate = "$d/$m/$y";
-----Original Message-----
From: Jose [mailto:josefga@olinet.es]
Sent: Friday, February 01, 2002 9:36 AM
To: php-general@lists.php.net
Subject: [PHP] Date format
Hi all.
How can I write the date in this format (dd/mm/yyyy) if php gives me
(yyyy,mm,dd)??
Thanks
----------------------------------------------------------------------------
------------------Jose Fco. ( josefga@olinet.es ).
OLINET, S.L. Teléfono: 952207135 - Fax: 952207600
Avda. Juan Sebastián Elcano, 39-41. 29017 Málaga. Spain
----------------------------------------------------------------------------
------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net