Example #1
0
 public static void EnsureUniversalTime(this IRow row, DateTimeField field)
 {
     if (!field.IsNull(row))
     {
         field[row] = field[row].Value.ToUniversalTime();
     }
 }
Example #2
0
 public static void ValidateDateRange(this Row row, DateTimeField start, DateTimeField finish)
 {
     if (!start.IsNull(row) &&
         !finish.IsNull(row) &&
         start[row].Value > finish[row].Value)
     {
         throw InvalidDateRangeError(row, start, finish);
     }
 }
Example #3
0
 public static void ValidateDateRange(this IRow row, DateTimeField start, DateTimeField finish,
                                      ITextLocalizer localizer)
 {
     if (!start.IsNull(row) &&
         !finish.IsNull(row) &&
         start[row].Value > finish[row].Value)
     {
         throw InvalidDateRangeError(start, finish, localizer);
     }
 }