Error constructing DayPilot.Date() Answered: Have you modified the source code? Or maybe you have overwritten the DayPilot.Date object? Because all this should work fine - you can also test it in the JavaScript console in the online demo . how-tojavascriptdaypilot.datebug