I have excel file
Which have column includes dates and it’s type is also Date in Excel file in dd-MM-yyyy format
But after I read, it gives me some rows are System.Datetime like till date 1 to 12
And after that it gives system.string
My System Datetime format is
MM/dd/yyyy hh:mm:ss
But after I write the datatable it changes month as day and day as month till 12th date
I want dd/MM/yyyy format for all rows
But it fails
Can somebody help me to sort out this
If you want to change the format of the column through UiPath
you can make use of format cells activity and pass the range (By getting the range through last Row index and the find value activities)
You need to normalize the values after reading.
Use Assign or For Each
For Each row In dt.AsEnumerable()
row(“DateColumn”) = DateTime.Parse(row(“DateColumn”).ToString.Trim,
System.Globalization.CultureInfo.InvariantCulture).ToString(“dd/MM/yyyy”)