Hi everyone.
I try to convert items from a List of Strings(listDelivery) to a DateTime variable to compare each of them with the actual date and return just future dates, also this date should have the right format (“dd.mm.yyyy”).
But when I try to convert by using ForEach and write in Assign:
Datetime.parseexact(listDelivery(item),“dd.MM.yyyy”,system.globalization.cultureinfo.invariantculture).ToString(“dd/MM/yyyy”)*
or
Convert.toDatetime(Datetime.parseexact(listDelivery(item),“dd.MM.yyyy”,system.globalization.cultureinfo.invariantculture).ToString(“dd/MM/yyyy”))
Compiler write something like that
“Option Strict On” does not allow implicit conversions from “string” to “integer”
Do you have ideas on how to solve this problem?
p.s. List of Strings I make from excel table which has other values and if date haven’t the right format, the row which containing this bad date should be deleted
1 post - 1 participant