Re: Is there a PHP equivalent of DATE_FORMAT ?

From: Date: Tue, 20 Feb 2001 21:56:23 +0000
Subject: Re: Is there a PHP equivalent of DATE_FORMAT ?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-6795@lists.php.net to get a copy of this message
Timothy Wright wrote: > Just wondering... > > DATE_FORMAT($datevariable, \"%Y%c%e\") works great in a query but I only > need to list the date once on the page (as opposed to in each row of the > query result) and I don't want to use a second query to MySQL. The date is > passed to the page as a variable in YYYYmd (month and day as integers) > format. > > Any help greatly appreciated... > > Tim > > ::::::::::::::::::::::::::::::::::::::::::: > ::: ::: > ::: Timothy Wright ::: > ::: mailto:tim.wright@01network.com ::: > ::: Digital Network Enterprises ::: > ::: http://www.01network.com ::: > ::: ::: > ::: secure e-mail by request ::: > ::: (PGP signature and/or encryption) ::: > ::::::::::::::::::::::::::::::::::::::::::: > > -- > 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 Yes. Take a look at http://www.php.net/manual/en/function.date.php You're Welcome DM

« previous php.db (#6795) next »