I am adding records that have DateIn and DateOut.There can be multiple records.
How to find what is the earliest DateIn and the latest DateOut from that list in c# MVC?
For Example
Number DateIn DateOut
1 10 Dec 2017 30 Dec 2017
2 12 Dec 2017 31 Dec 2017
3 5 Dec 2017 20 Dec 2017
SO the earlist date is 5 Dec 2017 and latest date is 31 Dec 2017

Ankit SharmaRank #141 · 16.1K reputationPosted Dec 14, 2017, 9:07 AM EST
S PRank #5,790 · 286 reputationPosted Dec 14, 2017, 10:14 AM EST