Chapter 2 SOP 7 12th I.T

 SOP 7.html

<!DOCTYPE html>
<html>
<head>
<title>SOP 7</title>
</head>
<script language="javascript">

var x=prompt("enter date 1");
var y=prompt("enter date 2");

var date1=new Date(x);
var date2=new Date(y);

var diff=date2.getTime()-date1.getTime();
var d=diff/(1000*3600*24);

document.write("the difference is"+d)
</script>
</body>
</html>

output

Chapter 2 SOP 7 Solution 12th I.T

Tags :-
12th I.T SOP solution,
12th I.T SOP,
12th I.T chapter 2 SOP solution,
12th I.T chapter 2 SOP 7 solution,
12th I.T SOP 7

Post a Comment

1 Comments