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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / ERROR The datetime str...
Power Automate
Answered

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
    69,456 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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard