Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

date format issue to ISO 8601

(0) ShareShare
ReportReport
Posted on by 259
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)
  • David_MA Profile Picture
    David_MA 8,929 on at
    date format issue to ISO 8601
    What Pstork1 suggested below should work for you.
  • nick9one1 Profile Picture
    nick9one1 259 on at
    date format issue to ISO 8601
    thanks
  • Suggested answer
    Pstork1 Profile Picture
    Pstork1 64,711 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')
     
     
  • Suggested answer
    Nived_Nambiar Profile Picture
    Nived_Nambiar 17,024 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')
     
     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard