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 / Minus days off todays ...
Power Automate
Suggested Answer

Minus days off todays date within a condition

(0) ShareShare
ReportReport
Posted on by
Hi, in desperate need of help!
I’m trying to figure out what’s not working but having no luck.
 
my current flow is Recurrence > Get worksheets > List rows present in a table > Filter Array > For Each > Condition > …..
 
so my filter array is filtering any rows of data from a spreadsheet that have blanks (no writing) in a specified column.
my condition is that I want to send an email to those rows of data that have blanks in specified column AND the date listed is 25 days or more ago.
 
So what I’m trying to figure out is how to make the condition work
right now I have for Condition Expression:
AND — 1st Value = Filter Array body (Dynamic) is less than 2nd Value = addDays(Today(-25))
- The error I get says “‘Today’ is not defined or not valid”
 
How do I fix this? Because it used to work and it’s not anymore, how do I make is defined or Valid??
 
thanks heaps in advance!!
 
Categories:
  • Suggested answer
    LessCodePaths Profile Picture
    100 on at
    Hi,
     
    Today() function does not exist in Power Automate.
    In Power Automate, there is only utcNow() function, which return current time.
     
    Your formula should become
    addDays(formatDateTime(utcNow(),'yyyy-MM-dd'),-25)

    This expression is doing two main things:

    1. formatDateTime(utcNow(), 'yyyy-MM-dd'):

      • utcNow() provides the current date and time in UTC.
      • formatDateTime(..., 'yyyy-MM-dd') formats this to return only the date (in YYYY-MM-DD format) without the time.
      • Result: This part outputs today’s date as a string (e.g., 2024-11-06).
    2. addDays(..., -25):

      ​​​​​​​
      • This takes the formatted date and subtracts 25 days from it.
      • Result: A date that’s 25 days before today, in date format.
    Hope it helps
    L.
  • Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at
    @LessCodePaths,
     
    The addDays function also has a format parameter
     
    addDays('<timestamp>', <days>, '<format>'?)
     
    So, you could also use the below and simplify the expression a bit.
    addDays(utcNow(), -25, 'yyyy-MM-dd')
     

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard