Power Automate Compare Date to Today: Past, Today, or Upcoming

A client’s office manager asked me for one column on their request tracker: is each item past due, due today, or coming up? To Power Automate compare date to today, you format both sides as yyyy-MM-dd and compare them as text.

The obvious version, greater(DueDate, utcNow()), gets two things wrong. It compares in UTC, and a date with a time attached counts as “after today” even when it’s today.

Quick answer: store today in a Compose action named Today_Eastern, then use if(less(date, today),'Past',if(equals(date, today),'Today','Upcoming')) with both dates in yyyy-MM-dd format.

In this tutorial, I’ll show you how I Power Automate compare date to today for single dates, for every list row, and inside a SharePoint filter. Every result is from a run at 7:24 PM Eastern on November 9, 2026.

Power Automate Select output labeling each due date Past Today Upcoming or No date
The finished Select output: each request labeled Past, Today, Upcoming, or No date

Why Does Today Need Its Own Compose Action?

Because utcNow() isn’t your today. At the moment of my run, this expression returned 2026-11-10 | 2026-11-09:

concat(utcNow('yyyy-MM-dd'),' | ',outputs('Today_Eastern'))

UTC had already rolled to November 10 while New York was still on November 9. So I create one Compose action, Today_Eastern, and compare everything against it:

convertFromUtc(utcNow(),'Eastern Standard Time','yyyy-MM-dd')

I explain more ways to grab the current date in setting a variable to today’s date.

Compare One Date: Past, Today, or Upcoming

Here’s the three-way check I use. To add it, insert a Compose, click Inputs, type /, choose Insert expression, and paste:

if(less('2026-11-02',outputs('Today_Eastern')),'Past',if(equals('2026-11-02',outputs('Today_Eastern')),'Today','Upcoming'))

With Today_Eastern at 2026-11-09, November 2 returned Past, November 9 returned Today, and November 16 returned Upcoming.

Text comparison works here only because yyyy-MM-dd sorts the same way as the calendar. The single-direction checks are covered in checking if a date is less than today and checking if a date is today.

Is a Date After Today? greater() vs greaterOrEquals()

For “after today,” use greater(). For “today or later,” use greaterOrEquals(). My run returned:

ExpressionResult
greater('2026-11-16',outputs('Today_Eastern'))true
greater('2026-11-09',outputs('Today_Eastern'))false
greaterOrEquals('2026-11-09',outputs('Today_Eastern'))true
greater(ticks('2026-11-16'),ticks(outputs('Today_Eastern')))true

The ticks() version compares numbers instead of text. It’s handy when your two dates come in different formats.

The Time Trap: Today With a Time Is “Greater” Than Today

This one bites people in conditions. A timestamp from the same day compared against a date-only value:

greater('2026-11-09T15:00:00Z',outputs('Today_Eastern'))
Power Automate code view of greater with a timestamp and Today_Eastern
A timestamp on the left, a date-only value on the right

It returned true, even though both are November 9:

Power Automate run output true for greater comparing a same-day timestamp to today
The run says the same-day timestamp is after today

Text comparison sees 2026-11-09T15... as longer than 2026-11-09, so it sorts after it. Format the left side first and it returned false, which is correct:

greater(formatDateTime('2026-11-09T15:00:00Z','yyyy-MM-dd'),outputs('Today_Eastern'))

The format patterns are the same ones used by formatDateTime().

Is a Date Within the Next 7 Days?

Combine two checks with and(): on or after today, and on or before today plus seven days.

and(greaterOrEquals('2026-11-16',outputs('Today_Eastern')),lessOrEquals('2026-11-16',addDays(outputs('Today_Eastern'),7,'yyyy-MM-dd')))

November 16 returned true and November 17 returned false. To show how far away a date is, this returned 7:

div(sub(ticks('2026-11-16'),ticks(outputs('Today_Eastern'))),864000000000)

I go deeper on that in the date difference in days guide.

Compare Every SharePoint Item to Today

My Customer Requests list has a date-only DueDate column. Rows 2 and 5 are blank, and row 7 is due on the run date:

IDTitleDueDate
1Ergonomic chairs – Austin office10/15/2026
2Laptop refresh – Denver sales teamblank
3Conference room AV upgrade – Seattle10/20/2026
4Printer toner – NYC front desk10/09/2026
5Standing desks – Chicago officeblank
6Badge printer – Boston lobby10/21/2026
7Copier lease renewal – Dallas office11/09/2026 (today)
8Network switch swap – Atlanta office11/08/2026
9Desk phones – Phoenix call center11/10/2026
10Safety signage – Miami warehouse11/16/2026
11Projector bulbs – Portland office11/12/2026

After Get items, I added a Select and mapped a Timing key to this expression:

if(empty(item()?['DueDate']),'No date',if(less(if(empty(item()?['DueDate']),'',formatDateTime(item()?['DueDate'],'yyyy-MM-dd')),outputs('Today_Eastern')),'Past',if(equals(if(empty(item()?['DueDate']),'',formatDateTime(item()?['DueDate'],'yyyy-MM-dd')),outputs('Today_Eastern')),'Today','Upcoming')))

Rows 1, 3, 4, 6, and 8 returned Past, row 7 returned Today, rows 9, 10, and 11 returned Upcoming, and both blanks returned No date. That’s the screenshot at the top. More on the action in the Select action guide.

Filter SharePoint for Dates After Today

I expected DueDate gt today to skip today’s row. It didn’t:

DueDate gt '@{outputs('Today_Eastern')}'
Power Automate Get items filter query DueDate gt today
The filter as it ran: DueDate gt ‘2026-11-09’

It returned rows 7, 9, 10, and 11:

Power Automate IDs output 7 9 10 11 from DueDate gt today filter
Row 7 is due today, yet gt still returned it

In my list, the REST API shows date-only values as 12:00 UTC, so today’s row is greater than midnight. Use ge tomorrow instead. That returned rows 9, 10, and 11 only:

DueDate ge '@{addDays(outputs('Today_Eastern'),1,'yyyy-MM-dd')}'

The same range idea fixes past-date filters in filtering dates less than today.

Common Errors and How to Fix Them

  • US-format text compares wrong. greater('01/15/2027',today) returned false. Format it first; formatDateTime('01/15/2027','yyyy-MM-dd') made it true.
  • Blank dates throw. greater(null,today) failed: it expects two parameters of matching types and got Null and String. Guard with if(empty(...)) as in checking if a date field is empty.
  • UTC rolls over early. After 7 or 8 PM Eastern, utcNow() is already tomorrow. Compare against Today_Eastern.

Frequently Asked Questions

How do I compare a date to today in Power Automate?

Format both as yyyy-MM-dd and use less(), equals(), or greater(). Store today with convertFromUtc(utcNow(),'Eastern Standard Time','yyyy-MM-dd').

How do I check if a date is greater than today?

Use greater(formatDateTime(date,'yyyy-MM-dd'), today). Without formatting, a same-day timestamp returned true in my test.

Why does my date comparison give the wrong day at night?

utcNow() is UTC. At 7:24 PM Eastern on November 9, it already returned November 10.

Can I compare dates in MM/dd/yyyy format?

Not as text. ’01/15/2027′ compared as smaller than ‘2026-11-09’. Convert both with formatDateTime() or compare ticks(), as in the expression functions reference.

Why does DueDate gt today return today’s items?

My list stores date-only values at 12:00 UTC, so today’s row is greater than midnight. Filter with ge tomorrow instead.

Related Date Tutorials

These are the date posts I’d keep open while building this: