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 / 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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard