note 68899 deleted from function.date by bobby
| From: | bobby@php.net | Date: | Thu, 07 Sep 2006 18:12:00 +0000 |
| Subject: | note 68899 deleted from function.date by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-116858@lists.php.net to get a copy of this message | ||
Note Submitter: Kirill M
----
Here's a really simple function I made for taking the MySQL date format output and converting
to 00.00.0000 (Month-Day-Year) format:
<?php
function reorderDate($inputDate) {
$day = substr($inputDate, 8);
$month = substr($inputDate, 5, -3);
$year = substr($inputDate, 0, 4);
$outputDate = $month.".".$day.".".$year;
return $outputDate;
}
?>