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 / utcnow showing time bu...
Power Automate
Answered

utcnow showing time but i only need date and causes it to fail

(0) ShareShare
ReportReport
Posted on by 29

using create new folder but it fails when using expression 

formatDateTime(adddays(utcnow(),1,'yyyy-MM-dd'))
 
I'm trying to have the date of the next day in the folder name, hence why im using that expression.
 
error im getting is shinegull_0-1663491861484.png

 

it looks the expression is trying to add the time to the name of folder as well 

shinegull_1-1663491899689.png

How do i make it so that the time doesnt show up? I need to to stop at 2022-09-19

 

Categories:
I have the same question (0)
  • Verified answer
    BobL Profile Picture
    34 on at

    I think you have your closing bracket in the incorrect place.

     

    Please try this.

     

    formatDateTime(adddays(utcnow(),1) ,'yyyy-MM-dd')

  • shinegull Profile Picture
    29 on at

    thank you!. It worked

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 462

#2
Vish WR Profile Picture

Vish WR 256

#3
David_MA Profile Picture

David_MA 242 Super User 2026 Season 1

Last 30 days Overall leaderboard