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

Notifications

Announcements

Community site session details

Community site session details

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

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
    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,436 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard