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 / Date format changes wh...
Power Automate
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 🙂

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @andrehamon 

     

    Check your Excel Date column format.

     

    image.png

  • andrehamon Profile Picture
    26 on at

    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?

  • Verified answer
    andrehamon Profile Picture
    26 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 953

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 622

Last 30 days Overall leaderboard