Question: How can I put restrictions and validation on the code? It allows the user to specify the date from and to. The restrictions are: 1-
How can I put restrictions and validation on the code? It allows the user to specify the date from and to. The restrictions are: 1- The user cannot choose a date from the (To Date) field until he chooses a date from the (From Date) field. 2- When the user chooses a date from the field (From Date) and then goes to the other field, which is (To Date), he is restricted so that the chosen date is actually among the dates that follow the date that was chosen from the field (From Date) and not before it! Correct example: From the date: 2-2-2020, to the date: 4-3-2023, and this range is correct. Wrong example: From the date: 2-2-2020, to the date 4-3-2001, and this range is wrong.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
