Added functions to DateTimeValidator.php