Hope this would help you resolve this
Usually when we get the date value from excel it will come in this format dd/MM/yyyy hh:mm:ss
To ensure that use a write line activity inside the for each row loop and mention Like this row(“yourcolumnname”).ToString this will print the value in the output panel
The reason why i suggest on this is because we need to mention only that format in the ParseExact method
Dat_output = DateTime.ParseExact(in_Config(“validDate”).ToString.SubString(0,10),“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture)
The highlighted place is where we need to mention the format of the input we give from in_config
Here we use SubString to get only dd/MM/yyyy from dd/MM/yyyy hh:MM:sss