Just return the DateTime list from your DataColumn. The Foreach line in your DataColumn adds the current item to the DateTime list.
List<DateTime> and use the Sort method, then get the first and last values.
Depending on your version of the frame, use the above for 2.0 , for >=3.5 you can use Max and Min or C linq .OrderByDesc(p => pX).FirstOrDefault(); on your datetime list
source share