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 / formatdatetime(utcnow(...
Power Automate
Suggested Answer

formatdatetime(utcnow() ,'M') = 13 January

(0) ShareShare
ReportReport
Posted on by
Everywhere I looked 'M' means one digit month but when I use it in scrip I get DD MMMM (e.g. 13 January). If I use 'MM' it becomes 01 as it should. What is going on?
 
BR
 
Pontus
formatdatetime.JPG
Categories:
  • Suggested answer
    eetuRobo Profile Picture
    4,587 Super User 2026 Season 2 on at
    I think that is how it should work in .NET even thought it feels unintuitive

    https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings
     

  • Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at
     
    In addition to the link shared by @eetuRobo there is another link which might be useful.
     
    The custom date and time format strings article:
     
    That article has examples for the formats you are using.
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard