I want to compare two excels with Time column and get matching data. Excel1 data in 12hr format and Excel2 data in 24hr format. compare these two data columns with hour and minutes.
Could you please help me on this.
Sample data:
Excel1
Time
7:03:34 AM
7:03:34 AM
7:03:34 AM
7:03:34 AM
7:03:34 AM
7:03:34 AM
7:03:34 AM
7:03:34 AM
Excel 2:
Time
10:40:09
7:34:19
13:17:34
13:10:08
12:16:18
Convert any excel data to required format and exclude seconds to compare with hours and minutes.
Note: Its bulk data we cant use for each row.
Timespan.parse(value) can be used to parse the date time values…read the data into datatable then you can know the format as well if you want to specify a format
Once you have the parse time…we can get minutes hours seconds everything separately and check