Re: Re: php & date manupulation functions

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

 



On Sun, Feb 16, 2003 at 08:14:57AM -0800, David Chamberlin wrote:

>
>
>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)
>....

I did this :

$dob            = explode('-', $aAns["dob"]);

This gives me an array of $dob with yy, mm and dd.

Thanks to those who replied.

Peace

--
Rajesh

-- 
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