Question: Write a function to validate the date input. N/N/NN to NN/NN/NNNN are allowed. Year has to be 2 digits or 4 digits. Month should be
Write a function to validate the date input.
N/N/NN to NN/NN/NNNN are allowed. Year has to be 2 digits or 4 digits.
Month should be 1 to 12.
Day should be 1 to 28/30/31 depending on the month.
Dont worry about the leap years.
Each character should be a digit or / No other characters are allowed.
IN C++ PLEASE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
