Quantcast
Channel: UiPath Community Forum - Topics tagged error
Viewing all articles
Browse latest Browse all 4384

How to take Item from List of String and change it to DataTime?

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 4384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>