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);
        }
Exemple #2
0
        public DateTime?TransformNullableDateTime(string value)
        {
            if (string.IsNullOrWhiteSpace(value))
            {
                throw new NotSupportedException("'Empty' entry to 'DateTime' transformation is not supported.");
            }

            return(DateConverter.GetDateFrom(value));
        }
Exemple #3
0
 private static DateTime GetValue(KeyValuePair <string, string> keyValuePair)
 {
     return(DateConverter.GetDateFrom(keyValuePair.Value) ?? default);
 }