Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

dd/mm/yyyy

(0) ShareShare
ReportReport
Posted on by 725

Hi all

Painfully new at Power Automate

But I have a flow that is almost good but when I compose a date from a Sharepoint list, it changes it from 2021-05-27 to 27/00/2021. Not sure what is happening to the month. This is the expression. formatDateTime(outputs('Compose'),'dd/mm/yyyy')

 

Thank you for any help

  • R Bakker Profile Picture
    725 on at
    Re: dd/mm/yyyy

    Soo simple

    Thank you Pstork1

  • Verified answer
    Pstork1 Profile Picture
    66,864 Most Valuable Professional on at
    Re: dd/mm/yyyy

    mm (lowercase) retrieves the minutes.  MM (uppercase) retrieves the Month.  The formula should be:

    formatDateTime(outputs('Compose'),'dd/MM/yyyy')

     

  • swathirajan Profile Picture
    93 on at
    Re: dd/mm/yyyy

    Hi,

     

    Have you tried changing it other format like mm/yyyy/dd and see how it displays the date?

     

    Here is the format that I use for my flows:

     

    formatDateTime(outputs('Create_an_approval')?['body/requestDate'], 'dd MMM yyyy')

     

     

     

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

  • PrasadAthalye Profile Picture
    on at
    Re: dd/mm/yyyy

    Use MM (caps) instead of mm (Small). It will work.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492