public override ValidationResult Validate(object a_value, CultureInfo a_cultureInfo)
        {
            DateTime inputTime;

            if (CheckDateValidation.Check(a_value, out inputTime))
            {
                return(new ValidationResult(false, "Invalid date"));
            }
            ;

            return(inputTime.Date < DateTime.Now.Date
                ? new ValidationResult(false, "Future date required")
                : ValidationResult.ValidResult);
        }
        public override ValidationResult Validate(object a_value, CultureInfo a_cultureInfo)
        {
            DateTime inputTime;

            if (CheckDateValidation.Check(a_value, out inputTime))
            {
                return(new ValidationResult(false, "Invalid date"));
            }

            var date = DateToCheck.Date;

            var resultDate = inputTime.CreateDateFromTime(date.Year, date.Month, date.Day);

            return(resultDate < DateTime.Now ? new ValidationResult(false, "Time is in past") : new ValidationResult(true, null));
        }