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 / Converting date from M...
Power Automate
Answered

Converting date from MS Form (dd/MM/yyy) to SharePoint List?

(0) ShareShare
ReportReport
Posted on by 18

Hi,

I'm using a the 'Send form responses for approval' flow template which eventually sends Form data into a SharePoint List once approved. 

I keep getting errors on how the date is formatted, instructing me that it must be in ISO 8601 format (yyy/dd/mm)

Can anyone advise how I can get around this or convert the format?

 

Many thanks

Categories:
I have the same question (0)
  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @PJ_Bowman98 ,

    please use the following expression:

    formatDateTime(<your_value>,'yyy/dd/MM')

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

     

    BR,

    Marco

  • PJ_Bowman98 Profile Picture
    18 on at

    Hi @MarconettiMarco 

    Thank you for responding! 

    I've used 'dynamic content' to add the MS Form Field in the <your_value> clause, (which turns into the below expression). I'm getting the error below. Perhaps my syntax is incorrect? 

    Thanks again.

     

    formatDateTime(outputs('Get_response_details')?['body/r32f8311fe8c44656be4fd094ece24cf0'],'yyy/dd/MM')

     

    PJ_Bowman98_0-1656948829438.png

     

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Ok, I see that’s not in String format.

    So, please use this expression:

    formatDateTime(string(<your_value>), ‘yyy/dd/MM’)

  • PJ_Bowman98 Profile Picture
    18 on at

    @MarconettiMarco  thanks so much - I tried the above for one of my date fields and it worked. But, I'm now getting this error! Any ideas?

    Again thank you - I appreciate it as I'm new to all of this!

    PJ_Bowman98_1-1656958203166.png

     

     

  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @PJ_Bowman98 ,

     

    Do you want to save the timestamp in yyyy-dd-MM format submitted by the MS Form to the 'Date and time' column in the SharePoint List?

     

    Maybe you could try the following expressions:

     

    formatDateTime(concat(split(Dynamic Content,'/')[0],'/',split(Dynamic Content,'/')[2],'/',split(Dynamic Content,'/')[1]),'yyyy/MM/dd')

     

     

    formatDateTime(concat(split(outputs('Get_response_details')?['body/r32f8311fe8c44656be4fd094ece24cf0'],'/')[0],'/',split(outputs('Get_response_details')?['body/r32f8311fe8c44656be4fd094ece24cf0'],'/')[2],'/',split(outputs('Get_response_details')?['body/r32f8311fe8c44656be4fd094ece24cf0'],'/')[1]),'yyyy/MM/dd')

     

    vyujincuimsft_0-1657176424401.pngvyujincuimsft_1-1657176497888.png

     

     

    Best Regards,
    Charlie Choi

  • PVaartstra Profile Picture
    4 on at

    There should be no need for a Power Automated expression.  Date fields should always store their data in an unambiguous structure.  And any interface exposed between systems should provide the data in ISO-8601 compliant format.  IMHO, storing the date format in the end-user's local format and exposing that same value in an interface is inexcusable.  MS Forms' Date Field is broken.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard