fixed a bug that was causing Firefox to render NaN for dates, months and years in the calendar for years with 2 or less digits