";
//The mktime() function is useful for doing date arithmetic and validation.
//It will automatically calculate the correct value for out-of-range input:
echo date("M-d-Y",mktime(0,0,0,12,36,2001)) . "
";
echo date("M-d-Y",mktime(0,0,0,14,1,2001)) . "
";
echo date("M-d-Y",mktime(0,0,0,1,1,2001)) . "
";
echo date("M-d-Y",mktime(0,0,0,1,1,99)) . "
";
?>