2 ) $theyear= $C - 4716; else $theyear= $C - 4715; return sprintf( "%04d%02d%02d", $theyear, $themonth, $theday); } ?>