There are lots of other similar posts, but I have tried lots of different things and can't fix this error:

The condition is comparing dates in the format dd-mm-yyyy.
When it reaches the 13th of JANUARY 2023, I get this error.
InvalidTemplate. Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'In function 'formatDateTime', the value provided for date time string '13-01-2023' was not valid. The datetime string must match ISO 8601 format.'.
So, I've tried formatDateTime(date, 'dd-MM-yyyy') and 'yyyy-MM-dd' and ticks and also ConvertToUTC.
What else is necessary to simply compare two dates???