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 / Flow Output Date Forma...
Power Automate
Unanswered

Flow Output Date Formatting

(0) ShareShare
ReportReport
Posted on by 93

I have a flow that creates a table (below) and sends it in an e-mail each week. However, I can't seem to get the formatting right on dates and numbers. How can I show the "Months Pushed Out" as only whole numbers, and the date at the top in YYYY-MM-DD format instead of with time?

 

 

enswitzer_0-1610978189771.png

 

enswitzer_1-1610978296602.png

 

 

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @enswitzer 

    For the "Months Pushed Out" expression, you should use the following expression:

    int(first(split(string(item()?['MonthsPushedOut']),'.')))

    Which converts the number to a string, get the number before the "." and converts it to integer.

     

    And for the date at the top (I suppose it is written in the email) you should use:

    formatDateTime(your_date,'yyyy-MM-dd')

    Hope it helps!

    Ferran

  • enswitzer Profile Picture
    93 on at

    Seemingly no matter what I do  - this Months one fails and gives me this Error:

    Unable to process template language expressions in action 'Set_variable' inputs at line '1' and column '23678': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 450

#2
Haque Profile Picture

Haque 366

#3
Valantis Profile Picture

Valantis 349

Last 30 days Overall leaderboard