Dear friends,
I'm facing a case where the date format could be different from a document to another (I extract the date from pdf docs using AI Builder in the flow). I'd like to transform them into the format "yyyy-MM-dd", which can be recognized by the filter query of the SharePoint.
Different formats could be:
- 'dd.MM.yyyy'
- 'yy/MM/dd'
- 'dd-MM-yyyy'
When I tired to transform them to the yyyy-MM-dd using the "formatDateTime" expression, I usually face the error such as: "Unable to process template language expressions in action 'Compose' inputs at line '0' and column '0': 'In function 'formatDateTime', the value provided for date time string '14-03-2023' was not valid. The datetime string must match ISO 8601 format.'."

Could you suggest any solution for me? Thank you.