How to check if date is expired?

I have a workflow that extracts a date (mm/yy) and I would like for the automation to check to see if that date has expired or not. For example whether a subscription that is valid until the 03/17 has expired already or not.


You can simply check it using a if condition @LeThomp

Extract the date and store it in a variable of type string and then pass it to a date variable after parsing it as

DateNew = datetime.ParseExact(extractedString, “dd/mm/yyyy”,system.Globalization.CultureInfo.InvariantCulture)

then check it as Now - DateNew

1 Like

It worked! Thanks so much for the great answer @HareeshMR!

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