Getting an error: Multiple Assign - Dates: Can not assign ‘DateTime.Parse(row(“EffDateRenDate”).ToString.Trim.Split({Environment.NewLine}, StringSplitOptions.None)(0).Trim)’ to ‘out_effectiveDate’.
I noticed that there is an “@” character before the dates (last screen shot). Could that be the issue?
I tried the below, but it did not work. DateTime.Parse(row(“EffDateRenDate”).ToString.Replace(“@”,“”).Trim.Split({Environment.NewLine}, StringSplitOptions.None)(0).Trim)
It looks like the @ character is outside the string value. I think this is called a verbatim string literal, which I’m not sure if its an issue or not.
statementDetailDT.rows(0).item(“EffDateRenDate”).ToString
@“07/01/2021
07/01/2022”
The issue was due to the Split({Environment.Newline},). Chrome does not recognize Environment.Newline so I had to use Split(CHR(10)) to split the two values at the “new line”.