Skip to main content

Notifications

Community site session details

Community site session details

Session Id : JA2f4DWTdUDvyL71+KtAqw
Power Automate - General Discussion
Answered

How to Format Date in the Sent Email?

Like (3) ShareShare
ReportReport
Posted on 3 Sep 2024 22:00:03 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:
  • Verified answer
    BluFin.S Profile Picture
    56 on 12 Sep 2024 at 23:56:56
    How to Format Date in the Sent Email?
    I have found the solution, here you are
     
    formatDateTime(convertTimeZone(triggerOutputs()?['body/DataeOraFine'], 'UTC', 'Central European Standard Time'), 'dd-MM-yyyy HH:mm')
     
  • BluFin.S Profile Picture
    56 on 05 Sep 2024 at 01:35:34
    How to Format Date in the Sent Email?
    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')


  • BluFin.S Profile Picture
    56 on 04 Sep 2024 at 23:15:51
    How to Format Date in the Sent Email?
    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 04 Sep 2024 at 23:02:14
    How to Format Date in the Sent Email?
    Thank you for your time @Rhiassuring but i got this error:



  • Rhiassuring Profile Picture
    8,688 Super User 2025 Season 1 on 04 Sep 2024 at 05:52:34
    How to Format Date in the Sent Email?
    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.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
rpersad Profile Picture

rpersad 16

#2
David_MA Profile Picture

David_MA 10 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 8 Super User 2025 Season 1

Overall leaderboard
Loading started