RE: [PHP-DB] Date Format
| From: | Ben Bleything | Date: | Fri, 20 Jul 2001 03:05:26 +0000 |
| Subject: | RE: [PHP-DB] Date Format | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-10594@lists.php.net to get a copy of this message | ||
<?php
$date = "2001-07-19"; // as if it just came from the db
$date_array = explode('-',$date);
$date = $date_array[1] . "-" . $date_array[2] . "-" .
$date_array[0];
?>
That should do it =>
Good luck!
Ben
-----Original Message-----
From: system@mailbox.orst.edu [mailto:system@mailbox.orst.edu] On Behalf
Of system
Sent: Friday, July 13, 2001 8:17 PM
To: php-db@lists.php.net
Subject: [PHP-DB] Date Format
Friends,
I have a design, up and running scripts connected to MySQL.
How do I retrieve date formats and have it displayed as dd-mm-yyyy ?
I store them as DATE.
CK Raju
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net