A bug was found that was miscalculating the day of the week (Thx Leon for finding it). Additionally I set the minimum year to 1582 to align with the creation of the Gregorian calendar.

I’ve fixed the bug and posted the new release on the DHTML Calendar page.