Adds the year, month and day class