Hi,
I have an automation where I read the date in formatm for example 10-DEV-2023. Then I need to get the date difference vs Today and check if it is greater than 20 days. I have problems with this task, can you please help me?
Hi,
I have an automation where I read the date in formatm for example 10-DEV-2023. Then I need to get the date difference vs Today and check if it is greater than 20 days. I have problems with this task, can you please help me?
Hi @camaro123
Try this
(DateTime.Today - DateTime.ParseExact(YourDate, "dd-MMM-yyyy", System.Globalization.CultureInfo.InvariantCulture)).Days > 20
Cheers!!
it works, thank you
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.