cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marial16
Post Partisan
Post Partisan

Wrong Date format in send email

Hallo, i am building a recurrent flow and i have this issue.

after the trigger i use a get items step. in my sharepoint list i have date fields. i send reminders based on those fields.

The format in the list is 'dd/mm/yyyy'.

 

in the filter query of get items i have an expression. 

marial16_0-1622803928956.png

if i change the format the flow wont send the email.

The reminders work just fine. But the problem is that when i send the email in the email body i use one of the date fields and the format is  'yyyy-MM-dd' . I would like it to be as shown in the SharePoint list (dd/mm/yyyy).

I tried to initialize a variable and use expressions 'formatdatetime' and convertdatetime'. This does not allow me to chose the field from the get items as shown below. 

marial16_1-1622804240908.png

How can i get the correct format in the email body?

1 REPLY 1
Pstork1
Dual Super User
Dual Super User

Add a compose action to the flow and put the value you want to reformat in the compose.  Now do a formatDateTime() where you want to use the date and pick the compose output.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,802)