Re: MySQL and DATE display problem

From: Date: Mon, 02 Oct 2000 21:21:57 +0000
Subject: Re: MySQL and DATE display problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-3236@lists.php.net to get a copy of this message
Try the "date" function : date("d/m/Y",$date). See the OnLine manual for more details. Jayme. http://www.conex.com.br/jjeffman -----Mensagem Original----- De: Vikesh <vikeshm@yahoo.com> Para: <php-db@lists.php.net> Enviada em: domingo, 1 de outubro de 2000 20:37 Assunto: [PHP-DB] MySQL and DATE display problem > I'm sure this is a simple query.. but I'm new to PHP > and MySQL: > > I have a db where one field holds the date. As you > all probably know the date is stored in the following > way: > > YYYY/MM/DD > > when I query the db from an html form and PHP, the > result also gets posted in this way (ie YYYY/MM/DD) > > How do I get the date to display in the following > format: > > DD/MM/YYYY? > > all help appreciated. > > Vikesh. > > __________________________________________________ > Do You Yahoo!? > Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! > http://photos.yahoo.com/ > > -- > 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 (#3236) next »