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 / Formatting utcNow() do...
Power Automate
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????

Categories:
I have the same question (0)
  • Verified answer
    tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    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.

  • sb-hog Profile Picture
    5 on at

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

     

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard