How do you compare DateTime objects using a specified tolerance in C#?

前端 未结 7 851
清酒与你
清酒与你 2020-12-29 20:07

By default C# compares DateTime objects to the 100ns tick. However, my database returns DateTime values to the nearest millisecond. What\'s the best way to compare two DateT

7条回答
提交回复
热议问题