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 Apps / Format Multiple Dates ...
Power Apps
Unanswered

Format Multiple Dates in compose

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

I have the following flow that gets multiple calendar entries and formats an HTML table before posting the output to Teams. All works fine with the exception that I would like to format the start and end dates but through all the searing and testing I can't find a solution.

 

Screenshot 2020-01-27 at 13.39.39.png

 

Can anyone confirm how best to achieve this? Many thanks!

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @nexus_sy 

    This sounds like a Power Automate question rather than a PowerApps question. You'll want to post this in the Power Automate Community instead.

    Link to Power Automate Community
    https://powerusers.microsoft.com/t5/Get-Help-with-Power-Automate/ct-p/FL_GeneralDiscussions


    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • rebeccas Profile Picture
    2,591 on at

    This is a better question for the Power Automate (Flow) Forum...BUT...to format the date you do:

     

    formatDateTime(<click field from dynamic content>,'MM/dd/yyyy')

     

    for the part that says <click field from dynamic content> you don't include the <>...just click on it.

  • nexus_sy Profile Picture
    4 on at

    Sorry for posting in the wrong place. I tried what you suggested but it didn't seem to work: formatDateTime appears in the output

     

    2020-01-27 at 14.22.png

  • rebeccas Profile Picture
    2,591 on at

    You have to do that part with the date using the Expression part. 

     

    * Click wherever you want it to show and have the box pop out to the right side that shows the Dynamic content and click Expression.

    * start typing in the function box FormatDateTime...it will start narrowing down the options and when you see it pop up just below in purple click on it and so you will have just "formatDateTime" in the function box..put in an "(" and then at the type click Dynamic Content so it shows the choices you can select and find your date field and click on it - when you do it will add something similar to body('Get_item')?['Created'] inside your Parenthesis - just depends on what your field is called and what its pulling from on this part. 

    * after you have clicked on it go up to that box and go to the end of what it added in but before your close parenthesis (that was added automatically when you put the open one and put -- ,'MM/dd/yyy'

    * Then click OK -- blue button 

     

    After you click Okay it should show up where you added in purple/pink with an fx and then just show formatDateTim… but if you hover of it you will see the full thing you put in.

     

    Let me know if you still have trouble and I can probably do a quick video to show you.

     

     

  • nexus_sy Profile Picture
    4 on at

    Thanks, when I go back to select 'Start Time' from Dynamic only two options are available:

     

    Screenshot 2020-01-27 at 14.42.06.png

     

    Thanks

  • rebeccas Profile Picture
    2,591 on at

    That is if you have where you are getting multiple items like by using 'Get items' instead of 'Get item' - even if you have a filter that is telling it just one item it still recognizes it as multiple. If that is the case you have to put your action (send email, I think is what you have) inside an 'Apply to each'

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard