日付情報を求めるには
<html>
<head>
<title>Sample</title>
</head>
<body>
<script type="text/javascript"><!--
dateObj = new Date();
document.write(dateObj+"<br>");
dateObj = new Date("2005/3/12");
document.write(dateObj+"<br>");
// --></script>
</body>
</html>

説明などは本書を参考にしてください。