smurf around with dates..
Posted: Fri Nov 29, 2002 6:21 pm
Two questions...
First, how do I get the date to display the full name of the day of the week, such as "Friday" rather than "Fri".
Also, I'm using the following function to change timestamps from a MYSQL DB into something understandable by most folk:
When I use it, the year seems to come up as 1969. How do I fix that?
Thanks for help!
First, how do I get the date to display the full name of the day of the week, such as "Friday" rather than "Fri".
Also, I'm using the following function to change timestamps from a MYSQL DB into something understandable by most folk:
Code: Select all
function formatDate($val)
{
$arr = explode("-", $val);
return date("D F Y", mktime(0,0,0, $arrї1], $arrї2], $arrї0]));
}Thanks for help!