web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Formatting dates accor...
Power Automate
Answered

Formatting dates according ISO 8601

(0) ShareShare
ReportReport
Posted on by 4

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?

Categories:
I have the same question (0)
  • Shuvam-rpa Profile Picture
    891 Super User 2024 Season 1 on at

    @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 Profile Picture
    891 Super User 2024 Season 1 on at

    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!

  • Verified answer
    Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @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

     

  • bellotma Profile Picture
    4 on at

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard