-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata_ob1.html
More file actions
31 lines (28 loc) · 1.04 KB
/
data_ob1.html
File metadata and controls
31 lines (28 loc) · 1.04 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
var today = new Date();
var nowMonth = today.getMonth()+1;
var nowDate = today.getDate();
var nowDay = today.getDay()+1;
document.write("<h1>오늘 날짜 정보</h1>");
document.write("현재 월: " + nowMonth, "<br>");
document.write("현재 일: " + nowDate, "<br>");
document.write("현재 요일: " + nowDay, "<br>");
var worldcup = new Date(2002,4,31);
var theMonth = worldcup.getMonth()+1;
var theDate = worldcup.getDate();
var theDay = worldcup.getDay()+1;
document.write("<h1>월드컵 날짜 정보</h1>");
document.write("2002월드컵 몇 월: " + theMonth, "<br>");
document.write("2002월드컵 몇 일: " + theDate, "<br>");
document.write("2002월드컵 몇 요일: " + theDay, "<br>");
</script>
</body>
</html>