Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

How can I convert a date format within Power Automate?

Posted on by 75

Hello, 

I have a flow that generate a document from dynamics 365 with a date in this format "26/09/2019 9:58 AM" (this is the format in CRM), I want to convert the date to "26 Septembre 2019" without using code to include it to an email. How can I do that please? 

I tried this formula but it doesn't work: 

4452.pastedimage1577989498233v1.png

I also tried this connector: 

pastedimage1578008985883v2.png

Thank you so much for your help!

  • Nima31 Profile Picture
    Nima31 75 on at
    RE: How can I convert a date format within Power Automate?

    Hi Clofy,

    It works perfectly.

    Thank you!

  • Suggested answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: How can I convert a date format within Power Automate?

    Hi Hammal,

    Just apply formatDateTime function to your date fields.

    I created an HTML table for an appointment for test:

    pastedimage1578020575720v2.png

    dynamic expression with formatDateTime function:

    formatDateTime(item()?['scheduledstart'],'yyyy-MM-dd')
    
    formatDateTime(item()?['scheduledend'],'yyyy-MM-dd')

    pastedimage1578020692720v3.png

    Result:

    pastedimage1578020515182v1.png

    Regards,

    Clofly

  • Suggested answer
    necsa Profile Picture
    necsa 3,455 on at
    RE: How can I convert a date format within Power Automate?

    Hi Hammal,

    Please take as reference following link:

    www.flowjoe.io/.../

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans