I have been trying to figure out what is wrong with this code for quite some time. The point is to input a Date
string lets say "5/10/2020". The code lets everything through the method that is 1/1, 1/12, 10/1, 10/11. But for instance, typing in a 0 before a day or month like 09, 012, 02 should throw a run time exception error. I got most of it to work except for one date which is "1/10" or having a one digit month and the day as 10, 20, or 30.
My code is here,
should I take,
and replace that with
I have tried that and it will not seem to work.