39,084
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body ng-controller="reserveController">
<form name="serviceform" novalidate>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th><font color="#FF0000">*</font>起始日期:</th>
<td>
<input type="date" ng-model="reserveData.start_DATE" ng-pattern="Redates" required>
</td>
</tr>
<tr>
<th><font color="#FF0000">*</font>结束时间:</th>
<td>
<input type="date" id="inputDate3" ng-model="reserveData.end_DATE" required>
<br />
<span ng-show="serviceform.inputDate3.$error.pattern">结束时间不能小于起始日期</span>
</td>
</tr>
</table>
</form>
</body>
</html>
<!doctype html>
<html lang="zh">
<head>
<meta charset="utf-8">
<title>html5_input_typedate</title>
<link href="inputtypedate.css" rel="stylesheet">
</head>
<body>
<input type="date" min="2013-09-23" max="2113-09-23">
<!-- 以上这行设定 min 属性控制开始日期 max 属性控制结束日期 -->
</body>
</html>