Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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;

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.