2 ) $theyear= $C - 4716; else $theyear= $C - 4715; return sprintf( "%04d%02d%02d", $theyear, $themonth, $theday); } function CRstartdate( $thecr) { return( J2date( cr2J( $thecr))); } function CRenddate( $thecr) { return( J2date( cr2J( $thecr+1)-1)); } ?>