var y = calendar.date.getFullYear();
var m = calendar.date.getMonth(); // integer, 0..11
var d = calendar.date.getDate(); // integer, 1..31
// redirect...
window.location = "/" + y + "/" + m + "/" + d + "/calendar.php";
The code comes from a calendar and when someone clicks on a day it is suppose to go to another page. I need it to go to another page so the other page can display some information for that date.