代码示例:(标识:eg_html_input_date_max_min)
<!DOCTYPE html>
<html>
<body>

<form action="/Index/Demo/demo_form_current.html">
请输入 1980-01-01 之前的日期:<br>
<input type="date" name="data[]" max="1979-12-31"><br><br>
请输入 2000-01-01 之后的日期:<br>
<input type="date" name="data[]" min="2000-01-02"><br><br>
<input type="submit"> 
</form>

<p><b>注释:</b>
Internet Explorer 不支持 type="date"。</p>

</body>
</html>
运行结果: