Re: PHP modifying data from DB?
| From: | Richard Harb | Date: | Fri, 23 Apr 2004 18:39:53 +0000 |
| Subject: | Re: PHP modifying data from DB? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184452@lists.php.net to get a copy of this message | ||
Have a look at strtotime() in addition to date()
Richard
Friday, April 23, 2004, 8:20:14 PM, thus was written:
> I have a field in a DB that contains a date. The format of the date is:
> 04/08/2004
> However, when I retrieve the date from DB using PHP, it displays the
> following:
> 2004-04-08 00:00:00
> Is PHP tacking on the zero's? I've tried using the date() function to
> reformat it back to how I want it, but haven't gotten it to work.
> Any ideas?
> Thanks!