Hi,
Please change:
To:
Code: JavaScript
calendar.goTo(new Date());
Note the "new" keyword in the second form. The first line
calls Date function and passes the return value of the function (a string object) to goTo method. The second line
creates a Date object and passes the date object to goTo method. Because goTo method expects a Date object, the second line is correct.
Thanks!