Jump to content


Photo

date error?? why? *solved*


  • This topic is locked This topic is locked
1 reply to this topic

#1 digitalgod

digitalgod
  • Members
  • PipPipPip
  • Advanced Member
  • 374 posts

Posted 05 September 2006 - 05:47 PM

hey guys,

trying to display a date but for some reason it's giving me the wrong year...

here's what I got
$y = 2006;
$m = 08;
$d = 24;

echo date('l, F jS, Y, mktime(0,0,0,$m,$d,$y));

//outputs Thursday, August 24th, 2000

why does it keep giving me 2000 as the year??

#2 digitalgod

digitalgod
  • Members
  • PipPipPip
  • Advanced Member
  • 374 posts

Posted 05 September 2006 - 05:49 PM

nevermind found my mistake.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users