What’s this all about then? Why is the month zero based? This makes no sense – you’d understand it if the days were too.

So to create a date object, that is the Christmas Day just past, you have to type:


var ChristmasDate=new Date(2006,11,25)

Looks like a Friday afternoon job to me!