implement DateValidator
closes #8