How to compare two dates in C# on just year, month, day, hour, minute, second? – Asp.net
I have two dates and I only want to make sure they match on these 6 fields: year, month, day, hour, minute and second. I have noticed that if I perform a simple equality == comparison if(d1 == d2) that…