-
-
Notifications
You must be signed in to change notification settings - Fork 194
Date Options
Greg Finzer edited this page Feb 19, 2019
·
2 revisions
Ignore millisecond differences between DateTime values or DateTimeOffset values. The default is 0 (any time difference will be shown).
//Ignore any millisecond differnces
CompareLogic compare = new CompareLogic();
compare.Config.MaxMillisecondsDateDifference = 999;
When comparing DateTimeOffsets, offsets will be compared as well as the UtcDateTimes. The default is false.
//Ignore timezones
CompareLogic compare = new CompareLogic();
compare.Config.CompareDateTimeOffsetWithOffsets = true;