You are on page 1of 1

<html>

<head>
<title>date and time</title>
</head>
<body>
<script type= "text/vbscript">
dim date1,date2,time1
date1=date()
document.write "DATE="&date1
document.write "<hr>"
document.write "current date & time="&now()
document.write "<hr>"
document.write "day="&day("06/05/2019")
time1=now()
document.write "HOUR="&hour(time1)
document.write "<hr>"
document.write "minute="&minute(time1)
document.write "<hr>"
document.write "second="&second(time1)
document.write "<hr>"
document.write "WeekDayName="&WeekDayName(4)
document.write "<hr>"
</script>
</body>
</html>

You might also like