Hi @mmarcos
Try this syntax:
result= DateTime.Compare(DateTime.ParseExact("23/11/2023", "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture), DateTime.ParseExact("22/10/2023", "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture))
If
result < 0
Then
Log Message-> "First date is before the second date"
Else
Log Message-> "First date is after or the same as the second date"
Hope it helps!!