is there a faster way to check if this is a valid date ?
- by ooo
is there a faster way then to simply catch an exception like below:
try
{
date = new DateTime(model_.Date.Year, model_.Date.Month, (7 * multiplier) + (7 - dow) + 2);
}
catch (Exception)
{
//This is an invalid date
}