The task was based on the date entered by a user to first determine whether the date is valid(proper format, plus the month number to not exceed 12, and the date number not