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?
This is how it looks now working:
Perfect! That works, thank you so much!
Sorry, my error:
formatDateTime(triggerOutputs()?['body/Date'], 'dd-MM-yyyy')
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')
Use this expression:
formatDateTime(ouputs(triggerOutputs()?['body/Date']), 'dd-MM-yyyy')
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 ?
Yes, you can just remove the date from your subject, and add it back in using the expression editor, with the expression:
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2