Skip to main content
Community site session details

Community site session details

Session Id : 942lH8MdMTI9EkZru2v5sS
Power Automate - Using Flows
Unanswered

Power Automate - format of date within body email

Like (0) ShareShare
ReportReport
Posted on 9 Sep 2021 01:50:31 by 31

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

Screen 1.pngScreen 2.JPGScreen 3.JPG

  • Violet1 Profile Picture
    31 on 14 Sep 2021 at 04:50:15
    Re: Power Automate - format of date within body email

    Hi eric,

    added new format date string and now the flow is coming up with an error 'String was not recognized as a valid DateTime. Creating query failed.'

  • Violet1 Profile Picture
    31 on 10 Sep 2021 at 04:09:11
    Re: Power Automate - format of date within body email

    Hi eric,

     

    tried formatDateTime(addDays(utcNow(), variables('varNumDays')),'dd-MM-yyyy') however the date is still displayed as yyyy-mm-dd

  • eric-cheng Profile Picture
    5,171 on 09 Sep 2021 at 06:54:08
    Re: Power Automate - format of date within body email

    Hi @Violet1 ,,

     

    Try

     

    formatDateTime(addDays(utcNow(), variables('varNumDays')),'dd-MM-yyyy')

     

    ericcheng_1-1631170442018.png

     

     

    ericcheng_0-1631170429645.png

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading complete