W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
"; //在进行日期计算和验证时会用到 mktime() 函数 //它会对超出范围的输入值自动计算正确的值: 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)) . "
"; ?>