Re: php & date manupulation functions
| From: | David Chamberlin | Date: | Sun, 16 Feb 2003 16:14:57 +0000 |
| Subject: | Re: php & date manupulation functions | ||
| References: | 1 2 | Groups: | php.db php.db |
| Request: | Send a blank email to php-db+get-25666@lists.php.net to get a copy of this message | ||
David Elliott wrote:
try <? echo date("d",$dbdate)."<br>"; echo date("m",$dbdate)."<br>"; echo date("y",$dbdate)."<br>"; ?>I thought date() took a timestamp, not a string. Here's what I do: $timestamp = $dbdate; echo date("d",$timestamp) echo date("m",$timestamp) .... -Dave