I need a user input for 2 dates, and get the difference between them, and if it is more than 14 days, throw an error.
Help appreciated
The date is in the format yyyy/mm/dd
Also, I want to match the pattern of the date to check if it is valid, I have done everything, month and year, except the day, it accepts days from 32-39 too, what should I do to correct it?