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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / date format issue to I...
Power Automate
Unanswered

date format issue to ISO 8601

(0) ShareShare
ReportReport
Posted on by 297
I have a flow that collects data from a completed docusign document. Part f the data is a dat in UK format 
  "Employers Liability Insurance Expiry": "04/10/2024",
I need to add this to a sharepoint list date column. I understand it needs to be in  ISO 8601 format for this to work. 

I have tried the following 
formatDateTime(body('Parse_JSON')?['Public Liability Expiry'], 'yyyy-MM-ddTHH:mm:ssZ')
 
but it outputs the date as 
2024-04-10T00:00:00Z
(month and day are reversed)
Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    date format issue to ISO 8601
    Hi,
     
    Try like this
     
    formatDateTime(parseDateTime(body('Parse_JSON')?['Public Liability Expiry'],'','dd/MM/yyyy'),'yyyy-MM-ddTHH:mm:ssZ')
     
     
  • Suggested answer
    Pstork1 Profile Picture
    68,678 Most Valuable Professional on at
    date format issue to ISO 8601
    Instead of FormatDateTime() you should be using ParseDateTime() so you can specify the locale of the input date.  Try this
     
    parseDateTime('04/10/2024', 'en-GB')
     
     
  • nick9one1 Profile Picture
    297 on at
    date format issue to ISO 8601
    thanks
  • David_MA Profile Picture
    12,908 Super User 2025 Season 2 on at
    date format issue to ISO 8601
    What Pstork1 suggested below should work for 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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard