cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bellotma
Regular Visitor

Formatting dates according ISO 8601

HI, I'm new in the forum and almost new in Power Automate. 

I need to compare two dates. One comes from an excel table where the format is dd/MM/yyyy (e.g. 28/06/2022). When reading the table in the flow I set the DateTime format as follows

bellotma_0-1656481297002.png

 

I set a string variable with this date:

bellotma_1-1656481367145.png

 and then setting the condition as follows:

bellotma_2-1656481468578.png

When I run the flow I get the error message:

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 'translationend' was not valid. The datetime string must match ISO 8601 format.'.

 

What I should do?

1 ACCEPTED SOLUTION

Accepted Solutions
Hardesh15
Super User
Super User

@bellotma  In formatDateTime() you are passing string 'translationed' which is incorrect. you should select variable from dynamic content. 

Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

@Hardesh /Gopenly.in

 

View solution in original post

4 REPLIES 4
Shuvam-rpa
Super User
Super User

@bellotma to solve the issue i recommend to use compose action where you can pass the date value you in compose action. So it will give you the idea what output you're getting. then after you can modify your format date time expression.

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Shuvam-rpa
Super User
Super User

For more info you can visit to the below link

 

How to customize or format Date and Time values in a flow - Power Automate | Microsoft Docs

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Hardesh15
Super User
Super User

@bellotma  In formatDateTime() you are passing string 'translationed' which is incorrect. you should select variable from dynamic content. 

Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

@Hardesh /Gopenly.in

 

Thanks, Hardesh15. At the end the issue was much trivial than expected!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,566)