I am currently working on a project where i need check whether a date that is inputted is valid.
i know how to use this using repetitive if functions.
for example;
to check the month you do
if (month <1 || month >12)
Then to check the day which is my problem. Each month has a different amount of days in it. i can see how to do an if loop which then has an inner loop.
i.e
if (month == 1)
{
if (day <1 || day > 31)
Application.Exit
}
then i would go on and do that for all twelve months changing the if function where necessary. but is there a way to do this with arrays?