> -----Original Message----- > From: admin@xxxxxxxxxxxxxxxxxxx [mailto:admin@xxxxxxxxxxxxxxxxxxx] > Sent: Monday, November 17, 2008 10:50 AM > To: php-general@xxxxxxxxxxxxx > Subject: Date Issue > > $smont = 10; > $sday = 13; > $syear = 2008; > $timestamp = mktime(0,0,0,$smont,$sday,$syear); > $thismonth = getdate($timestamp); > > Here is where the problem comes into play. > > echo $thismonth['yday']; > > This displays 286 when in fact its 287. > Is there a problem in my ini file or what is the deal. Are you sure this isn't like Javascript's "getMonth" function? Its index may begin at 0, making "day 0" the "first day" of the year. HTH, Todd Boyd Web Programmer