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 / ERROR The datetime str...
Power Automate
Unanswered

ERROR The datetime string must match ISO 8601 format.'.

(0) ShareShare
ReportReport
Posted on by 7

Hello, 

I have a big problem with this type of error:

Serena_Noce_0-1663080030183.png

My flow cloud is with two conditions:

Serena_Noce_1-1663080150761.png

The error is the 2° condition. The syntax is this:

 

formatDateTime(item()?['Data'], 'dd/MM/yyyy') is equal 
formatDateTime(utcnow(), 'dd/MM/yyyy')
 
The file is this:
Serena_Noce_2-1663080359265.png

The format date is correct in Excel. So, what is the problem? Thanks 

 

Serena

 

 

 

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Check the Excel format for the Data column.  I suspect its set for one of the custom date formats rather than one of the builtin date formats.  So FormatDateTime on that column is trying to format a string, not a date value

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @Serena_Noce,

    This is an issue related to ISO format.

    Modify your formula as below:

    formatDateTime(addDays('01-01-1900', add(int(items('Apply_to_each')?['Oggi']),-2)), 'MM/dd/yyyy')
    formatDateTime(utcnow(), 'MM/dd/yyyy')
  • Verified answer
    Serena_Noce Profile Picture
    7 on at

    Thanks for the support!

    I solved the problem with this setting:

    Serena_Noce_0-1663136749949.png

    I had not set the ISO8601 value.

    Serena

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard