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...
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nitin SontakkePosted Nov 9, 2016, 7:38 AM
Jitendra SharmaPosted Nov 9, 2016, 2:23 AM
ali tuncerPosted Nov 9, 2016, 2:19 AM
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