Hello Daniela,
I think the best way to do this is to transform your string “10/01/2022” to a dateTime variable with:
DateTime.ParseExact(“10/01/2022”,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture)
After transforming your string to Datetime, you just need to make simple IF Statements such as > or <.
For more information about transforming datetime: