Compare date to each other
i want to compare two dates for which one is greater one is system date or second one is select by datetimepicker so please explain how to compare .......in window application ...reply fast...
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

ali tuncerRank #1,499 · 1.1K reputationPosted Nov 8, 2016, 9:19 PM EST
you can use operators like < or >, just like comparing numbers..or you can use DateTime.Compare method :
https://msdn.microsoft.com/en-us/library/system.datetime.compare(v=vs.110).aspx
Jitendra SharmaRank #3,268 · 439 reputationPosted Nov 8, 2016, 9:23 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Nov 9, 2016, 2:38 AM EST