question

Violet-5812 avatar image
0 Votes"
Violet-5812 asked LeonLaude edited

Power Automate - format of date within body email

Hi
i have created a flow using power automate (with the assistance of eric-cheng), that will send an email to a user 30 days prior to a due date. The emails are working fine; subject line and content in body is good, however the date in the body is in the wrong format.
- Currently the format is MM-dd-yyyy and i would like to change it to dd-MM-yyy. Following is what i tried
- I changed the format at the 'Initalize variable' stage
from: addDays(utcNow(), variables('varNumDays'), 'MM-dd-yyyy')
To: addDays(utcNow(), variables('varNumDays'), 'dd-MM-yyyy'). when i did this the emails did not send.
- I then added a Compose to the the 'Apply to each'. Email worked but date in wrong format

Any help will be greatly appreciate

Thank you


[1]: /answers/storage/attachments/129980-screen-1.png

[2]: /answers/storage/attachments/130101-screen-2.jpg

[3]: /answers/storage/attachments/130039-screen-3.jpg

not-supported
screen-1.png (18.0 KiB)
screen-2.jpg (26.1 KiB)
screen-3.jpg (45.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLaude avatar image
0 Votes"
LeonLaude answered

Hi @Violet-5812,

Please note that Power Automate is currently not supported in the Q&A forums, the supported products are listed over here https://docs.microsoft.com/en-us/answers/products.

You may ask the experts in the dedicated Power Automate forum over here:
https://powerusers.microsoft.com/t5/Microsoft-Power-Automate/ct-p/MPACommunity


If the reply was helpful please don't forget to upvote and/or accept as answer, thank you!


Best regards,
Leon

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.