cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Towaiji
Helper II
Helper II

yesterday's date

I was given the following expression to add today's date under a certain format

 

formatDateTime(utcNow(),'MM-dd-yyyy')
 
How do I make the same but for yesterday's date? because I always get the paper the next morning and its for the day before

Regards
 
1 ACCEPTED SOLUTION

Accepted Solutions
RobElliott
Super User
Super User

@Towaiji  

 

formatDateTime(addDays(utcNow(),-1),'MM-dd-yyyy')

 

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

View solution in original post

1 REPLY 1
RobElliott
Super User
Super User

@Towaiji  

 

formatDateTime(addDays(utcNow(),-1),'MM-dd-yyyy')

 

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (1,720)