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 / Send an email v2 Forma...
Power Automate
Unanswered

Send an email v2 Format the date as dd-MM-yyyy

(0) ShareShare
ReportReport
Posted on by 125

I have a Flow using Send an email v2 when a new item is created in a SharePoint list

The SharePoint list has a Date field in it and I want that date to be part of the email.

It works but the Date field shows in the email as for example 2021-05-27

But I want it to display in the UK/European format of 27-05-2021

 

I know I need to use the Expression to do this with FormatDateTime but how do I "wrap" that around the date field?

Date Format.JPG

 

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

    Yes, you can just remove the date from your subject, and add it back in using the expression editor, with the expression:

    formatDateTime(outputs('Date'), 'dd-MM-yyyy')
    But instead of outputs('Date') you will select your date from your dynamic content. Does that make sense?
  • AdamInLondon Profile Picture
    125 on at

    Hi thanks for this

     Thanks it starts to make sense but

    it formats it like this:

    formatDateTime(ouputs(triggerOutputs()?['body/Date']))

     

    where do I specify I want dd-MM-yyyy ?

  • Paulie78 Profile Picture
    8,422 Moderator on at

    Use this expression:

    formatDateTime(ouputs(triggerOutputs()?['body/Date']), 'dd-MM-yyyy')
  • AdamInLondon Profile Picture
    125 on at

    Hi Im getting this error:

    Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'Template language expression cannot be evaluated: the default fired trigger is not defined at current scope. '.'.

    

    This is the expression copied directly from my flow:

     

    formatDateTime(outputs(triggerOutputs()?['body/Date']),'dd-MM-yyyy')

  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    Sorry, my error:

    formatDateTime(triggerOutputs()?['body/Date'], 'dd-MM-yyyy')
  • AdamInLondon Profile Picture
    125 on at

    Perfect! That works, thank you so much!

  • AdamInLondon Profile Picture
    125 on at

    This is how it looks now working:

    thumbnail_image001.png 

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