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 / DateTime Format List r...
Power Automate
Unanswered

DateTime Format List rows present in a table

(0) ShareShare
ReportReport
Posted on by 13

Hello

I am using the List Rows Present in a Table function and want to use the DateTime format field so the date displays correctly later on in my flow. The options ISO8601 and Serial Number are given. I just want the format to be mm/dd/yyyy. 

 

Any ideas? 

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

    Hi @SIMIKE2016 

     

    Please follow the below steps.

     

    image.png

     

    The above expression I used is as follows:

     

    formatDateTime(items('Apply_to_each')?['DateOfBirth'],'MM-dd-yyyy')
     
    Thanks
  • mmherdz Profile Picture
    21 on at

    Hi - I tried your solution but it didn't work for me. I'm getting the below error

    mmherdz_0-1649456736380.png

    I'm not an IT person so I really don't understand it. I've been searching for the solution here. I wanted my date to be MM/dd/yyyy format and it's working in 'For a selected row' using the formatted value in dynamic content. But since I'm working on a lot of rows, I need to use "List rows present in a table". Really appreciate your help on this. 

     

    Thanks,

    Mikee

  • Ellis Karim Profile Picture
    11,683 Super User 2025 Season 2 on at

     

    ekarim2020_0-1649504856768.png

    Based on your screen shown, @abm's expression needs to be modified to reference the current apply to each loop. Try the following:

     

    formatDateTime(items('Apply_to_each_4')?['DateOfBirth'],'MM-dd-yyyy')

     

     

    Ellis

  • mmherdz Profile Picture
    21 on at

    Hi Ellis - Thanks for your help. I'm still getting an error. 😞 Please see below:

    mmherdz_0-1649950923048.pngmmherdz_1-1649950988633.png

     

  • Ellis Karim Profile Picture
    11,683 Super User 2025 Season 2 on at

    Your flow for needs to be constructed like this:

    ekarim2020_0-1649952770702.png

    with the expression in the Compose action:

    formatDateTime(items('Apply_to_each_4')?['DateOfBirth'],'MM-dd-yyyy')

     

    Please try the above and report back. See @abm 's solution below for reference.

     

    Ellis

  • mmherdz Profile Picture
    21 on at

    Hi, I just tried it again but I'm getting the below error.

    mmherdz_1-1649953774875.png

     

    I'm not sure why it is reading the date like that, as you can see here my dates are formatted as Dates.

    mmherdz_0-1649953716347.png

     

  • Ellis Karim Profile Picture
    11,683 Super User 2025 Season 2 on at

    Please confirm that the DateTime Format is set to ISO 8601:

    Snag_8f68b5.png

     

    Ellis

  • mmherdz Profile Picture
    21 on at

    Yes, that's right.

    mmherdz_0-1649955085853.png

     

  • Ellis Karim Profile Picture
    11,683 Super User 2025 Season 2 on at

    Excel stores dates as integer values eg. 44609.

    The flow is still reading the dates as integer values instead of ISO 8601 dates. Please try setting the column to Date in the Excel file then save.

     

    2022-04-14_17-56-17.gif

     

    Example integer date 44609 converted to a Date in Excel:

    2022-04-14_18-00-54.gif

     

    Ellis

  • mmherdz Profile Picture
    21 on at

    Hi - I just tried it and I dont have any errors in my flow anymore. However, in the output email, it seems that the formatting didn't work. I really appreciate your help and I'm sorry if took too much of your time.

    This is how it looked like in the email it sent out:

    mmherdz_0-1649956666031.png

     


    In my flow, here's what I did: 

    mmherdz_1-1649956686280.png

     


    Was there something wrong with the expression? 

    formatDateTime(items('Apply_to_each_4')?['Date'],'MM-dd-yyyy')
    I used 'Date' in the expression because I wanted to  apply it in the dynamic content / column "Date"

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard