Re: date format

From: Date: Sat, 27 Apr 2002 07:42:38 +0000
Subject: Re: date format
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94870@lists.php.net to get a copy of this message
try <? $date="2002-04-27"; echo date("d-m-Y",strtotime($date)); ?> -- Best regards, George Nicolae IT Manager ___________________ PaginiWeb.com - Professional Web Design www.PaginiWeb.com "Ananth Rajaraman" <lalithananth@yahoo.com> wrote in message news:20020427064325.2716.qmail@web14002.mail.yahoo.com... > Hi all, > I'm trying to query a date field from mySQL and > display in a differnet format. > > the mysql date is in the format YYYY-MM-DD and I want > to convert it to DD-MM-YYYY > > how do I do that? > > TIA > > Ananth > > ===== > visit www.locustechnologies.com > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com

« previous php.general (#94870) next »