RE: [PHP-DB] Date format

From: Date: Mon, 17 Jul 2000 14:29:55 +0000
Subject: RE: [PHP-DB] Date format
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-1185@lists.php.net to get a copy of this message
you could do it like this $date="2000-04-12 14:06:09"; $year=substr("$date", 0, 4); $month=substr("$date",5, 2); $day=substr("$date", 8, 2); echo "$day-$month-$year"; M@ -----Original Message----- From: Vojtech Dvorak [mailto:vojtech_dvorak@servind.cz] Sent: Monday, July 17, 2000 02:50 To: php-db@lists.php.net Subject: [PHP-DB] Date format I am using ODBC to get a dates from my MS Access database, but problem comes when I need change format of dates I get.. What I get is: "2000-04-12 14:06:09" what I need is only: "12-04-2000" Do someone know how should I make it? Thanks Vojtech -- 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 (#1185) next »