Added date validation

Added a check to ensure that any date time window selected when creating
a CDF file will be validated.