Implicit conversions from "Date?" to "Date"

Hello.

I am in a solution to calculate how much time a Item take to be completed in Orchestrator, so I want to extract the StartTransactionTime, and it works fine, even I can convert it to a string, but doesn’t allow me to assign it to a datetime variable using system.datetime

and I can´t find which one is the correct type to use.

Thank you in advance!

2021-08-20_13h03_31

Hi @Alberto_Palma ,

Have you tried converting it with Cdate(iccItem.StartTransactionTime)

Also please print iccItem.StartTransactionItem value in log above so that you can get to know what format is actually coming and then you can also use ParseExact for conversion.

1 Like

It worked! Thank you!

1 Like

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