Is there an analogous form of the following code:
if(month == 4,6,9,11) { do something; }
Or must it be:
if(month == 4 ||
Don't do any specific checks. Try and convert to a valid date - if it throws an exception, report invalid date. After all you also need to check for day greater than 28 (or is it 29?) if the month is February.