Is there a PHP equivalent of DATE_FORMAT ?
| From: | Timothy Wright | Date: | Mon, 19 Feb 2001 23:30:20 +0000 |
| Subject: | Is there a PHP equivalent of DATE_FORMAT ? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-6767@lists.php.net to get a copy of this message | ||
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) :::
:::::::::::::::::::::::::::::::::::::::::::