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 / How to Format Date in ...
Power Automate
Unanswered

How to Format Date in the Sent Email?

(3) ShareShare
ReportReport
Posted on by 56
Hello guys,

For more than 2 hours I have been trying to solve a problem with my notification flow when rows are added to the List list.



The goal is to notify all members of that group, the flow works but I have a huge problem with the email formatting resulting with the horrible date.

These are the columns in the list with START (Inizio) and END (Fine) date



I know you can use variables but there is no way I can change the “start date” and “end date” of the event on List so that it is readable.



The email



Can you help me to do this? I would like to see date as dd/MM/yyyy hh:mm
Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,690 Moderator on at
    Hi there, 
     
    I see you're initializing your variable however you haven't pointed it at the Start Date which is shown in the Dynamic Content from your trigger action.
     
    You need to apply your formatting to that.
     
    Here's an example:
     
    formatdatetime(triggerOutputs()?['body/DataeOraInizio'],'dd-MMM-yyyy')
     
    Then, you'd use that variable in your email body.
  • BluFin.S Profile Picture
    56 on at
    Thank you for your time @Rhiassuring but i got this error:



  • BluFin.S Profile Picture
    56 on at
    Update

    I have tweaked a but the code and now IT WORKS! Awesome





    Just one last detail.
    How can I format the date as 07/09/2024 instead of using the name of the month in English i.e. SEPTEMBER?
    To add the same formatting to the second date, do I add another variable?

    Thank you very much
  • BluFin.S Profile Picture
    56 on at
    One last issue..ho do i add the time zone coversion from UTC to CET (UTC +1) in this string? @Reassuring
     
    formatdatetime(triggerOutputs()?['body/DataeOraFine'],'dd-MMM-yyyy hh:mm')


  • Verified answer
    BluFin.S Profile Picture
    56 on at
    I have found the solution, here you are
     
    formatDateTime(convertTimeZone(triggerOutputs()?['body/DataeOraFine'], 'UTC', 'Central European Standard Time'), 'dd-MM-yyyy HH:mm')
     

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