List of Strings to date Error (" Option Strict On Disallows implicit conversions from "String to Integer" ")

Read in other topics about a the very same error, but cant find to resolve it.
I try to load a list of strings, and the single string into a temporary DateTime-Var to work with it afterwards.

But it doesn’t allow the conversion.

Practice2 Lists & DateTimes.xaml (8.1 KB)

you should check your variables types…

I did, but I cant find any mistakes

Hi
mention like this in assign activity and in IF condition
but with expresion like this in ASSIGN activity
dateCurrent = Datetime.ParseExact(item.ToString,“dd.MM.yyyy”,System.Globalization.CultureInfo.InvariantCulture)

Cheers @Khar

1 Like

Thanks a lot, @Palaniyappan.

If you got some spare time, could you tell me what this expression (" System.Globalization.CultureInfo.InvariantCulture") does?

it will just not use any pre defined culture to format the date, you can also use Nothing

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.