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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard