Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Formatting utcNow() don't work

(0) ShareShare
ReportReport
Posted on by 5

Good morning!

 

I have a problem with the function of utcNow(), resp. the formatting.

In every programming language, in every YoutTube-Video that I have seen for this funtion were explained, that when you format a date with 'M' you get only the month as a number. 

 

In my flow I get utcNow('M') = 'August 11' and I'm short to explode for this not logical result.

Why I get the name of month and the day as a number????? I can not understand this.

 

My aim is '8'

 

What I'm doing wrong????

  • sb-hog Profile Picture
    5 on at
    Re: Formatting utcNow() don't work

    Thanks @tom_riha for your solution. Now I do this with int(utcNow('MM')).

     

  • Verified answer
    tom_riha Profile Picture
    10,127 Most Valuable Professional on at
    Re: Formatting utcNow() don't work

    Hello @sb-hog ,

    a single character is often a standard format string: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings, you can use MM instead, even though it’ll display 08 and not just 8.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June 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 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1