<html>
<head>
<title>Convert Day of the Week</title>
</head>
<body>
<script language="JavaScript" type="text/javascript">
<!--
var weekdays = new Array(7);
weekdays[0] = "Sunday";
weekdays[1] = "Monday";
weekdays[2] = "Tuesday";
weekdays[3] = "Wednesday";
weekdays[4] = "Thursday";
weekdays[5] = "Friday";
weekdays[6] = "Saturday";
var current_date = new Date();
weekday_value = current_date.getDay();
document.write("Today is " + weekdays[weekday_value]);
//-->
</script>
</body>
</html>
|