RE: [PHP-DB] Date Format

From: Date: Fri, 20 Jul 2001 07:52:19 +0000
Subject: RE: [PHP-DB] Date Format
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-10596@lists.php.net to get a copy of this message
Hi CK, I always fetch the Date like "SELECT UNIX_TIMESTAMP(Timestamp) AS Timestamp" so you can manipulate it with all the PHP Date- and Timefunctions like date(). So you can display the date the way you asked with: $Timestamp = ; // fetch the Timestamp the way you like =8) echo date( "d-m-Y", $Timestamp ); Thats it. Hope this helps. Greetinx, Mike Michael Rudel - Web-Development, Systemadministration - Besuchen Sie uns am 20. und 21. August 2001 auf der online-marketing-düsseldorf in Halle 1 Stand E 16 _______________________________________________________________ Suchtreffer AG Bleicherstraße 20 D-78467 Konstanz Germany fon: +49-(0)7531-89207-17 fax: +49-(0)7531-89207-13 e-mail: mailto:mru@suchtreffer.de internet: http://www.suchtreffer.de _______________________________________________________________ > -----Original Message----- > From: system@mail.bodensee.com [mailto:system@mail.bodensee.com]On > Behalf Of system > Sent: Saturday, July 14, 2001 5:17 AM > 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 >

« previous php.db (#10596) next »