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

>David Elliott wrote:
>>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.



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

Reply via email to