Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Date format changes when exporting data from Sharepoint List to Excel table

(0) ShareShare
ReportReport
Posted on by 26

Hi all,


Currently trying to build an excel doc that takes Sharepoint list data and puts relevant data into a table in an excel file.

I've got the data flowing nicely, but for some reason the dates act funky when exporting.

 

Behavior:

Select maps the data from a "Get Items" action. As you can see it pulls "PolicyBoundDate" value from the Sharepoint list as UTC ISO date/time - in this case "2022-02-10T20:01:00Z". Using the convertFromUTC() function and formatting (to dd/MM/yyyy hh:mm tt", it's output as "11/02/22 9:01 AM".

dateFormatError2.png

 

Later in the flow, I then add the data above to the table in my excel document, here you can see it's passed the formatted date/time "11/02/22 9:01 AM" and reports the same as the output.

dateFormatError3.png

 

However, once I check on the excel document generated, the time format has changed? And not only that but it changes the data, so when I format it as required (dd/MM/yyyy hh:mm tt) it swaps the day and month??

Excel app (file downloaded)

dateFormatError5.png

Excel online (opening directly from Sharepoint online)

dateFormatError4.png

 

So essentially, Sharepoint List (2022-02-10T20:01:00Z) > Power Automate (11/02/22 9:01 AM) > Excel (02 01 2022 9:01 [Excel App] // 2/11/2022 9:01 [Excel online])


Really confused how to get consistency with the formatting here, i'd really like to not have it as a string as being filterable as a date value is required. Note all apps and sites are set for the same region for formatting (New Zealand).

 

Any insight or help is greatly appreciated!!

Cheers 🙂

  • Verified answer
    andrehamon Profile Picture
    26 on at
    Re: Date format changes when exporting data from Sharepoint List to Excel table

    Hmmm for anyone that finds this, I fixed the issue by sending the following format to excel from Power Automate "dd/MMM/yyyy h:mm tt" adding the extra M in the Month field to send it as a letter rather than a number.

     

    I guess excel may have a bug in it's default code that interprets dates as US format by default? Who knows.

  • andrehamon Profile Picture
    26 on at
    Re: Date format changes when exporting data from Sharepoint List to Excel table

    Screenshot 2022-02-13 134504.png

     

    So somewhere along the line it converts it to US Format (MM/dd/yyyy) but then when it goes into excel it formats it as dd/MM/yyyy and loses the tt (AM/PM)?

     

    Will be interested to see what happens when it gets todays data with 13/02 as there's no thirteenth month?

  • abm abm Profile Picture
    32,506 Most Valuable Professional on at
    Re: Date format changes when exporting data from Sharepoint List to Excel table

    Hi @andrehamon 

     

    Check your Excel Date column format.

     

    image.png

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1