$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" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... list($y,$m,$d) = explode(",",$phpdate); $newdate = "$d/$m/$y"; -----Original Message----- From: Jose [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 9:36 AM To: [EMAIL PROTECTED] 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. ( [EMAIL PROTECTED] ). 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]