Simple <? print "The last day of this year is a " . date("D", mktime(0, 0, 0, 12, 31)) . "<br />"; ?> PHP:
I think he means the actual day, not the date. While the last day of the year is the 31st of December, it could be any number of days (Sunday - Saturday)