Say I have three variables: month, year and day. How do I check whether they form a valid date, i.e. not "Februrary 31 1999"?