Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001072

RE: [PHP-DB] Date Format From: Ben Bleything (bleythbe <email protected>)
Date: 07/19/01

<?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 <email protected> [mailto:system <email protected>] On Behalf
Of system
Sent: Friday, July 13, 2001 8:17 PM
To: php-db <email protected>
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 <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>