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 : iSnGJOKvksh1RhG9Z8azKy
Power Automate - Building Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 4 Jul 2022 09:18:56 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

  • PVaartstra Profile Picture
    4 on 12 Oct 2023 at 19:35:25
    Re: Converting date from MS Form (dd/MM/yyy) to SharePoint List?

    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.

  • Verified answer
    v-yujincui-msft Profile Picture
    on 07 Jul 2022 at 06:49:41
    Re: Converting date from MS Form (dd/MM/yyy) to SharePoint List?

    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

  • PJ_Bowman98 Profile Picture
    18 on 04 Jul 2022 at 18:10:17
    Re: Converting date from MS Form (dd/MM/yyy) to SharePoint List?

    @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

     

     

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on 04 Jul 2022 at 15:41:28
    Re: Converting date from MS Form (dd/MM/yyy) to SharePoint List?

    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 04 Jul 2022 at 15:36:04
    Re: Converting date from MS Form (dd/MM/yyy) to SharePoint List?

    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 04 Jul 2022 at 11:34:43
    Re: Converting date from MS Form (dd/MM/yyy) to SharePoint List?

    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

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete