I'm having a bit of an issue using the date function... it isn't cooperating with any 
dates before... sometime in 1970.  I guess this is date 0 for unix, if I'm not 
mistaken.  However, dates before this time are throwing an error at me:

  Warning: unexpected error in date() in D:\wwwroot\vvf\oshawa\articles.php on line 110
   
Not terribly informative, but here is the code that produces that error:

   list($yr,$mo,$dy)=explode("-",$art[article_date]);
   $date = date("Y F d", mktime(0,0,0,$mo,$dy,$yr));

This works perfectly for everything else... I have pages of database-returned dates, 
and when an older article comes up, that's the error I get right at the top of the 
list. 

Is there any easy workaround for the date function?

Thanks,

Marc

Reply via email to