I am running PHP 4.3.4 on Solaris 9.
If i run this bit of code
It returns Sat.
However if I turn it to
it returns Sat too!! 31st returns Monday and 28th returns Friday so why is it getting 2 Sats for 29th and 30th and Not Sun for 30th??
I'm stumped. As I'm creating a calendar I start a new row after every Sat but this is screwing my nice neat Calendar up.
Please help.
------------------------------------------
Somethings come from nothing, nothing seems to come from somethings - SFA - Guerilla
roycrom![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
If i run this bit of code
Code:
<?
$TIME=mktime(0,0,0,03,29,2003);
$DATE=date("D", $TIME);
echo $DATE;
?>
It returns Sat.
However if I turn it to
Code:
<?
$TIME=mktime(0,0,0,03,30,2003);
$DATE=date("D", $TIME);
echo $DATE;
?>
it returns Sat too!! 31st returns Monday and 28th returns Friday so why is it getting 2 Sats for 29th and 30th and Not Sun for 30th??
I'm stumped. As I'm creating a calendar I start a new row after every Sat but this is screwing my nice neat Calendar up.
Please help.
------------------------------------------
Somethings come from nothing, nothing seems to come from somethings - SFA - Guerilla
roycrom