Not able to compare time(facing an Exception)

Hi All,

I am facing one issue in which I am not able to compare time.
I am attaching my workflow as well as snag it of exception.
Please help me on this one.
Main.xaml (8.6 KB)

Thanks!
Anmol

Hello,

You are comparing generic value/string in the wrong format. you can convert the DateTime to String using DateTime.ToLongTimeString later you can compare.

If you are comparing the only time of same day it works well, but if you checking different dates i recommend to use the date.compare(date) this will check both date and time

time_1.ToLongTimeString

Thanks,
Meg

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