-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
37 lines (33 loc) · 996 Bytes
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!--
-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no,
user-scalable=no"/>
<style>
</style>
<script type="text/javascript">
</script>
</head>
<body onload="">
<form name="testForm">
<input type="text" id="now" />
<br/>
<input type="text" id="later" />
</form>
</body>
<script type="text/javascript">
var now = new Date();
var later = new Date();
later.setTime(now.getTime()+5*24*3600*1000);
document.getElementById("now").value = now;
document.getElementById("later").value = later.toLocaleDateString() + " " + later.toLocaleTimeString();
</script>
</html>