public DateTime TransformDateTime(string value) { if (MapDriver.IsNotSet(value)) { throw new NotSupportedException("'Empty' entry to 'DateTime' transformation is not supported."); } return(DateConverter.GetDateFrom(value).Value); }
public DateTime?TransformNullableDateTime(string value) { if (string.IsNullOrWhiteSpace(value)) { throw new NotSupportedException("'Empty' entry to 'DateTime' transformation is not supported."); } return(DateConverter.GetDateFrom(value)); }
private static DateTime GetValue(KeyValuePair <string, string> keyValuePair) { return(DateConverter.GetDateFrom(keyValuePair.Value) ?? default); }