年月日を設定するには
		
			<html>
			<head>
			<title>Sample</title>
			</head>
			<body>
			<script type="text/javascript"><!--
			dateObj = new Date();
			dateObj.setMonth(11);
			dateObj.setDate(31);
			yb = "日月火水木金土".charAt(dateObj.getDay());
			document.write("今年の大晦日は"+yb+"曜日です<br>");
			// --></script>
			</body>
			</html>
		
		
		
			
 説明などは本書を参考にしてください。