By inputting a date number, you can calculate whether this day is a valid date and what day of the week it is.