代码示例:(标识:eg_html_input_datetime-local)
<!DOCTYPE html>
<html>
<body>

<p>
根据浏览器支持:<br>
当您填写输入字段时会弹出日期选择器。
</p>

<form action="/Index/Demo/demo_form_current.html">
  生日(日期和时间):
  <input type="datetime-local" name="data">
  <input type="submit" value="Send">
</form>

<p><b>注释:</b>Firefox 或者
Internet Explorer 不支持 type="datetime-local"。</p>

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