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 / Converting dates from ...
Power Automate
Unanswered

Converting dates from Excel Sharepoint sheet to dates instead of integers

(0) ShareShare
ReportReport
Posted on by 2

Hi there,

 

after looking at tons of youtube videos and community posts, I finally give up; I appreciate any help. 

I have an excel table in One Drive and want to send an email extracting dates from the excel file.

The issue that I have is that the date extracted from the one column are showing up in the email like '44789'. 

 

Excel online: Key column is called 'Datum vom letzten Code'

Ellen1981_2-1685891420244.png

 

 

Ellen1981_1-1685890990950.png

 

Details for 'Apply to each': Formular is formatDateTime(addDays('1900-01-01',add(int(outputs('Compose')),-2)),'dd.MM.yyyy')

 

Ellen1981_4-1685892016611.png 

 

 

After running this I get the following error:

Ellen1981_3-1685891966400.png

 

thank you for your time,

Ellen

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @Ellen1981 

     

    To get the dates in proper format from the output of 'List rows present in a table' action, please perform the following steps:

    1. Click on the link 'Show advanced options':

    ManishSolanki_0-1685899814761.png

     

    2. Set 'DateTime Format' parameter to 'ISO 8601' as shown below:

    ManishSolanki_1-1685899883393.png

    After making those changes, you will get dates with time zone value in the format 'yyyy-MM-ddT00:00:00.000Z'. To further change its format, you can make use of formatDateTime formula.

     

    If this helps, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Ellen1981 Profile Picture
    2 on at

    Hi Manish,

    thank you for getting back to me so quickly.

     

    I added ISO 8601 to "List rows present in a table'

    Ellen1981_1-1685913418232.png

     

    When I test the flow, I see that in the Output of "List rows present in a table" that the column "Datum vom letzten Code" is still shown in dates instead of the ISO format. 

    Ellen1981_0-1685973463101.png

    Not sure if it makes a different but this excel column has a formula embedded to calculate a specific date based on the time the person completes a Microsoft Form. 

     

     

    I also receive this error message. You can see that there is no information for INPUTS or OUTPUTS. Does this cause another issue as well?

     

    Ellen1981_0-1685913397501.png

    And if this is not the reason, can you tell me which date format I have to use? I typed in these expression in the section 'Compose2':

    formatDateTime(utcNow()outputs('Compose'),'dd.MM.yyyy') or

    formatDateTime(outputs('Compose'),'dd.MM.yyyy')

    and none of them seem to work. 

     

    Thank you

    Ellen

     

     

     

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard