I have a excel file with 2 columns, ID and test_datetime. The format for the test_datetime column is Custom dd/mm/yyyy hh:mm:ss and I cannot change this. I did a read range activity into a datatable. For each row in data table i assigned:
row(“test_datetime”) into DateTime.ParseExact(row(“test_datetime”).ToString, “dd/mm/yyyy hh:MM:ss”, System.Globalization.CultureInfo.InvariantCulture) but it gives me the error as mentioned in title.
I need to insert this DateTime value into Microsoft Access database, so I do need to keep the formatting of dd/mm/yyyy hh:MM:ss. How do I do this?