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

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

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

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

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