public static void EnsureUniversalTime(this IRow row, DateTimeField field) { if (!field.IsNull(row)) { field[row] = field[row].Value.ToUniversalTime(); } }
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); } }
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); } }