updated checkDate equality to check against integer ms