Changed date/time validation code