Unfortunately the requirements are in a way that it can be interpretated in more different ways. However it was understood that each rows of distinct pair of Start Date and corresponding End Date are to bring into a datatable
Find starter help here, implementing this with a LINQ statement based on the Group By approach: dhennespiritu.xaml (9.4 KB)
It is not predictible as the dates from excel will come / looks like in the datatable. Thats why following line is implemented to get prepared for quick adoptions:
(From d In dtData.AsEnumerable
Group d By k1=DateTime.ParseExact(d("Start Date").toString.Trim, "M/dd/yyyy",CI).Date,
k2=DateTime.ParseExact(d("End Date").toString.Trim, "M/dd/yyyy",CI).Date Into grp=Group
Select grp.CopyToDataTable).toList
e.g. start date
k1=DateTime.ParseExact(d(“Start Date”).toString.Trim, “M/dd/yyyy”,CI).Date
With finetuning the date format e.g. additonal time info the parsing will handle this as well. For grouping it was set on the date without the time