Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Date Format changing when "Add Row to Table" command

(0) ShareShare
ReportReport
Posted on by

I have a date in a PowerApps that is sent to Excel through Power Automate.

 

In the process i format the date with the following:

 

formatDateTime(variables('VFechaInicio'),'dd/MM/yyyy')
 
Once the row is added to Excel, the format is created as MM/dd/yyyy, does someone how to fix this issue?
 
  • HaleckzisZhoria Profile Picture
    HaleckzisZhoria 3 on at
    Re: Date Format changing when "Add Row to Table" command

    Thanks so much @gidiscacciati ! That works for me.

    I also used parseDateTime to ISO format my string.

  • DonJO Profile Picture
    DonJO 2 on at
    Re: Date Format changing when "Add Row to Table" command

    The only one solution is to select the hole column and apply the settings for all the column

  • kp_2 Profile Picture
    kp_2 5 on at
    Re: Date Format changing when "Add Row to Table" command

    gidiscacciati  thank you for sharing this! Your solution worked for me, too! This was driving me crazy!

  • gidiscacciati Profile Picture
    gidiscacciati 69 on at
    Re: Date Format changing when "Add Row to Table" command

    Did anyone get a solution for this? I'm also having the same issue. I format the date as 'dd/MM/yyyy' in power automate, "Add row into a table" output shows the date in the correct format (06/02/2023), but in excel it shows 02/06/2023. What in the world is going on here?

     

    Power Automate output:

    gidiscacciati_1-1677782996456.png

     

    Excel File:

    gidiscacciati_2-1677783085747.png

     

    EDIT: I would like to add here something that finally worked for me. If I use 'yyyy-MM-dd' as date format in formatDateTime, when the data gows to excel, it reads it correctly, and keeps the default formatting (in my case, default format in Excel is dd/MM/yyyy)

  • jonsey1995 Profile Picture
    jonsey1995 3 on at
    Re: Date Format changing when "Add Row to Table" command

    Also having this issue, anyone found a solution?

  • Irama Profile Picture
    Irama 15 on at
    Re: Date Format changing when "Add Row to Table" command

    Same issue, still haven't found a work around😓

  • FFS Profile Picture
    FFS 38 on at
    Re: Date Format changing when "Add Row to Table" command

    I have the same issue, output in Power Automate is correct. Regions on Excel 365 and Power Automate both on UK but still it's switching to US format. Any ideas?

  • DamoBird365 Profile Picture
    DamoBird365 8,942 on at
    Re: Date Format changing when "Add Row to Table" command

    Hi @Anonymous,

     

    If it's just an asthetic thing, I have tried adding a comma to the start of the date using concat and that works but that won't help you if you need to perform calcs on the date in Excel?

     

    concat('''',formatDateTime(addDays(utcNow(),3),'dd/MM/yyyy'))
     
    Damien
  • Re: Date Format changing when "Add Row to Table" command

    Yes @DamoBird365 

     

    The output of the Power Automate is correct, apparently is just Excel turning it aroung only when possible, if the day is bigger than 12 then it understand the correct order and stays dd/MM/yyyy. what a crazy behavior...

  • Re: Date Format changing when "Add Row to Table" command

    .

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard