internal static DateParamValue FromQueryValue(string queryValue) { var compVal = findComparator(queryValue); var value = compVal.Item1; var comp = compVal.Item2; FhirDateTime dummy; if (FhirDateTime.TryParse(value, out dummy)) { return(new DateParamValue(comp, value)); } else { throw new FormatException("Date query parameters should be valid (partial) xml date/times"); } }