web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Various ways to format...
Power Automate
Answered

Various ways to format date in long formats

(2) ShareShare
ReportReport
Posted on by 104

Dropping this here for someone starting out with Power Automate and having a hard time finding the right way to format dates.

* Get the year:

formatDateTime(triggerOutputs()?['body/start'],'yyyy')

Equals 2024

 

* Get the month:

formatDateTime(triggerOutputs()?['body/start'],'MM')

formatDateTime(utcNow(),'MMMM') which gives the result August.
so MM=08, MMM=Aug, MMMM=August

 

*Long format date

formatDateTime(triggerOutputs()?['body/start'],'MMMM dd, yyyy')

Equals March 27, 2024

 

*Get day of the week

formatDateTime(triggerOutputs()?['body/start'],'dddd MMMM dd, yyyy')

Equals Wednesday March 27, 2024

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi, @CodeAvenue 

    Thanks for sharing on the date format! You can use your own reply Mark as a solution, which can help more people!

     

    Best Regards,

    Yueyun Zhang

  • Chriddle Profile Picture
    8,672 Super User 2026 Season 1 on at

    There's a bit more to it (e.g. locale, single format specifier)

     

    To learn the basics I recommend to start here:

     

  • Verified answer
    CodeAvenue Profile Picture
    104 on at
     

    Dropping this here for someone starting out with Power Automate and having a hard time finding the right way to format dates.
     

    * Get the year:

    formatDateTime(triggerOutputs()?['body/start'],'yyyy')

    Equals 2024

     

    * Get the month:

    formatDateTime(triggerOutputs()?['body/start'],'MM')

    formatDateTime(utcNow(),'MMMM') which gives the result August.
    so MM=08, MMM=Aug, MMMM=August

     

    *Long format date

    formatDateTime(triggerOutputs()?['body/start'],'MMMM dd, yyyy')

    Equals March 27, 2024

     

    *Get day of the week

    formatDateTime(triggerOutputs()?['body/start'],'dddd MMMM dd, yyyy')

    Equals Wednesday March 27, 2024

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard