php-db | 2001072
Date: 07/19/01
- Next message: Pranot Kokate: "[PHP-DB] Monitoring No. OF CLICKS for a link"
- Previous message: Andrew Forgue: "[PHP-DB] PASSWORD('xxxxx') and PHP"
- In reply to: system: "[PHP-DB] Date Format"
- Next in thread: Michael Rudel: "RE: [PHP-DB] Date Format"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
<?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>
- Next message: Pranot Kokate: "[PHP-DB] Monitoring No. OF CLICKS for a link"
- Previous message: Andrew Forgue: "[PHP-DB] PASSWORD('xxxxx') and PHP"
- In reply to: system: "[PHP-DB] Date Format"
- Next in thread: Michael Rudel: "RE: [PHP-DB] Date Format"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

