web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Date format changes wh...
Power Automate
Unanswered

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,865 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard