I have been reading many articles on how to change the column type of a data table from String to Date, but none of them has worked for except the For Each Row and changing each one on its own.
But I want a faster way through the Assign activity to change the whole date column to date in one activity.
I have two columns, one for Name, and the other for Date:
Name 20191128
Name 20191128
Name 20191128
Name 20191128
Name 20191128
Name 20191128
I want to convert the second column to be in this formate dd/MM/yyyy.
Yes we can of course
With assign activity like this in side the FOR EACH ROW loop with datatable as input obtained from Read Range activity
Like this by concatenating single quotes row(“Date”) = “‘“ + DateTime.ParseExact(“yyyyMMdd”,”yyyyMMdd”,System.Globalization.CultureInfo.InvariantCulture).ToString(“dd/MM/yyyy”)
But while using this data back using any for each row loop we need to replace the single quotes
Like this Str_output = row(“yourcolumnname”).ToString.Replace(“‘“,””)