Hi there,
I have a list of string called dates, which is instantiated with new List(of String) from {“01/02/1999”,“04/05/1985”,“05/05/1999”}.
I would like to convert this list of strings to DateTime variable type, hence I first created a new variable called newdates with DateTime variable type.
I then used the For each activity, inside the activity I used assign activity and did To as newdates and Value as DateTime.Parse(item)
After that I printed the new dates out using log message by typing newdates as message.
However, only the last item which is 05/05/1999 00:00:00 was printed out but not the other two dates.
Is there any reason why the for each is not working? I thought after the for each activity is performed, newdates will be stored with a list of dates in DateTime variable type, hence the printing should work
Thanks.