Re: php & date manupulation functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux