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

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
Categories:
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,190 Super User 2025 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,183 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

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

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard