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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!