html
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
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div class="intro">
<h3>Welcome to new code <br>To convert date into day</h3>
Hi guys here i had created a very new type of program to convert given Date into Day . I had not used any of the special packages to convert date into day . Insteed of that I had written a code using some mathmatical rules .
</div><br /><br />
<center>
<input type="number" placeholder="Date" id="date" value="" >
<input type="text" placeholder="Month" id="month" value="">
<input type="number" placeholder="Year" id="year" value=""></center><br>
<center><button onclick="day()">FIND DAY</button><br /><br />
<div id="day"></div></center>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
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
body {
background-image:url("https://images.unsplash.com/photo-1531306728370-e2ebd9d7bb99?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=668&q=80");
height:100%;
background-repeat:no-repeat;
background-size:cover;
}
h3{
text-align:center;
text-decoration:underline;
font-size:30px;
font-family:Florence, cursive;
}
.intro{
width:100%;
height:260px;
border-style:dashed;
font-size:20px;
border-color: blue;
color: lightgreen;
font-family:Florence, cursive;
border-radius:10px;
}
#date{
height:30px;
Enter to Rename, Shift+Enter to Preview
js
js
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
var d1 = new Object();
var d2 = new Object();
d1={"january":0,
"february":3,
"march":3,
"april":6,
"may":1,
"june":4,
"july":6,
"august":2,
"september":5,
"october":0,
"november":3,
"december":5
}
d2={1:'SUNDAY',
2:'MONDAY',
3:'TUESDAY',
4:'WEDNESDAY',
5:'THURSDAY',
6:'FRIDAY',
0:'SATURDAY'
}
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run