Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Problem with ISO 8601 on a SharePoint date

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I'm struggling with a problem on a SharePoint date not in ISO 8601 format.

 

 formatDateTime('triggerBody()?["Created"]''dd/mm/yyyy hh:mm tt')
 
It returns that the submitted date/hour chain is not valid and must match the ISO 8601 format. I tried converting the date to ISO format using the convertToUtc() function, still returned that in order to use this function I need a valid date.
 
I'm really stuck with this issue, could someone help me figure this out please ?
  • Community Power Platform Member Profile Picture
    on at
    Re: Problem with ISO 8601 on a SharePoint date

    That worked like a charm, thank you ! 🙂

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Problem with ISO 8601 on a SharePoint date

     

    Hi @Anonymous ,

     

    We should add '' outside Created and need to remove '' outside the triggerBody()?[‘Create’].

    Image reference:

    86.PNG

    Hope this helps.

     

    Best Regards,

  • Jcook Profile Picture
    7,779 Most Valuable Professional on at
    Re: Problem with ISO 8601 on a SharePoint date

    Hello @Anonymous 

     

    Can you try to use the Convert time zone action. This will ensure your format matches ISO format

    pic1.png

     

  • efialttes Profile Picture
    14,756 on at
    Re: Problem with ISO 8601 on a SharePoint date

    Hi!

    I am afraid the sintaxis from your first expression IS wrong.

    You can simply add a dummy 'Compose' action block before the action block where your flow crashes, then assign my suggested expression as its input. REexecute the flow, see if it works

     

    If it does, just share the whole expression (with the larger function around) so we can try to help putting the pieces together

    Hope this helps

  • Community Power Platform Member Profile Picture
    on at
    Re: Problem with ISO 8601 on a SharePoint date

    Unfortunately it cannot help, there is a larger function around, at first I used the single quotes, still got me the same error.

     

     
  • efialttes Profile Picture
    14,756 on at
    Re: Problem with ISO 8601 on a SharePoint date

    Hi!

    TRy this instead:

    formatDateTime(triggerBody()?['Created'], 'dd/mm/yyyy hh:mm tt')

     

    Hope this helps

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492