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 / Problem with ISO 8601 ...
Power Automate
Unanswered

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 ?
Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    Hi!

    TRy this instead:

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

     

    Hope this helps

  • Community Power Platform Member Profile Picture
    on at

    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

    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

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @Anonymous 

     

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

    pic1.png

     

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @Anonymous ,

     

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

    Image reference:

    86.PNG

    Hope this helps.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at

    That worked like a charm, thank you ! 🙂

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard