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 swapping b...
Power Automate
Unanswered

Date format swapping between Power Automate and Excel using 'add a row into a table'

(0) ShareShare
ReportReport
Posted on by 8
Hello,
I'm not sure if this is a Power Automate or an Excel issue but I thought I would try here first.
 
we have an online system for referrals which uses Microsoft Forms.
 
Since the recent update to Microsoft Forms took away the automatic update feature to its associated spreadsheet, I have set up a flow to transfer the data from the forms into an Excel spreadsheet when a form is filled in.
 
 
this is working well and is transferring the data to the spreadsheet.
However there is a issue with the 'Client Date of Birth' field.
We are in the UK and all the date fields are set up with the 'dd/MM/yyyy' date format.
I have also used 'FormatDateTime' to set the date format to 'dd/MM/yyyy'
 
 
However when the data is transferred to the spreadsheet, if the 'day' part of the date of birth is between 1 and 12, Excel then swaps the date round.
 
This date was inputted as 08/03/1996.
 
 
I have another flow which transfers the form data into a pdf. This transfers the date correctly:
 
 
 
I have checked every regional setting on the browser, Sharepoint, Excel, Forms, Windows and they are all set to UK.
The column on the spreadsheet is set to UK date in the format dd/MM/yyyy.
 
If the day number is bigger than 12, then it stays as the correct format.
 
Any ideas why this is being swapped?
 
Thanks
 
 
Categories:
I have the same question (0)
  • plarrue Profile Picture
    Moderator on at
    Hi 
     
    Have you tried "Format date by examples"?
     
     
    Regards,
    Philippe
  • CU22010947-0 Profile Picture
    8 on at
    Thank you plarrue,
    I will try this and see if it works.
  • CU22010947-0 Profile Picture
    8 on at
    Unfortunately the 'format date by examples' did not solve the problem.
     
    The date is in the correct format within Power Automate, both on the flow result and the raw outputs.
     
    However once the date is put in Excel, the day and month have been swapped.
  • Verified answer
    Chriddle Profile Picture
    8,436 Super User 2025 Season 2 on at
    Don't use formatDateTime() at all.
    Just set the "Add a row into a table" connector's "DateTime Format" to "ISO 8601".
     
     
  • CU22010947-0 Profile Picture
    8 on at
    Thank you Chriddle.
    That did solve the issue. Excel is no longer swapping the dates.

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