Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Yesterday's Date (MS Power Automate)

In Microsoft Power Automate, using the expression utcNow() you can get the current date (and time). I am trying to get yesterday's date. I tried dateadd(utcNow(), -1) and similar code, but nothing works. Anyone know how to work with dates in Microsoft Power Automate?

like image 716
SUMguy Avatar asked Sep 06 '25 21:09

SUMguy


1 Answers

addDays is the function you're looking for:

//Yesterday
addDays(utcnow(),-1)

//Next Week
addDays(utcnow(),7)
like image 186
AaronBaker Avatar answered Sep 08 '25 16:09

AaronBaker