Using Date for new Calendar

admin

Administrator
Staff member
I have different Monthly Calendar pages with different selected events. I simply wish to go to a different page, e.g. 12-2002.htm, 1-2003.htm, based on the date. My present HTML is:

<tr>
<td><a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:;">Calendar</a></td>
</tr>

But I'm not sure what to replace the "javascript:;" with.

I have a function I started, but also am not sure it's right:

<head>

<script language = "JavaScript">

<!-- Begin
function GetMonthYear {

var Calendar = new Date();

var year = Calendar.getYear(); // Returns year
var month = Calendar.getMonth() + 1; // Returns month (0-11)

var MonthYear = month + year + ?htm? // or does this need to be STR(month) + STR(year) + ?htm?br />

return MonthYear;
}

</script>

</head>

Thanks for any and all help. rick
 
Back
Top