Fix the bug in the Date class.