C1 Min Read LetuscrackonJune 8, 2024 Function validateDate The function/method validateDate accepts an argument dateStr representing a string value which contains a date in the format…