Power Automate Check If Date Is Less Than Today: 2 Tested Ways

If you’ve tried a Power Automate check if date is less than today and got true for a future date, the comparison is working on text. Use less(formatDateTime(date,'yyyy-MM-dd'), today) instead.

less() compares strings one character at a time, so the date format decides the answer. In this tutorial, I’ll show the Power Automate check if date is less than today patterns that held up in my run on November 9, 2026.

Power Automate Select output showing IsPastDue true for an old date and false for a blank date
My result: past dates are true, and blank dates stay false

The Sample List We’ll Use

It’s a SharePoint list with a date-only DueDate column. Today’s date lives in a Compose action named Today_Eastern, using convertFromUtc(utcNow(),'Eastern Standard Time','yyyy-MM-dd').

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 (yesterday)
9Desk phones – Phoenix call center11/10/2026 (tomorrow)
10Safety signage – Miami warehouse11/16/2026

If you only need rows from SharePoint, a server-side filter for dates less than today is the better choice. This post is about checking a date inside the flow.

Method 1: Compare Formatted Dates With less() (Recommended)

Same list, one row at a time. Add a Condition inside Apply to each, choose is less than, and use this expression on the left:

if(empty(items('Check_each_request')?['DueDate']),'9999-12-31',formatDateTime(items('Check_each_request')?['DueDate'],'yyyy-MM-dd'))

Put outputs('Today_Eastern') on the right. Rows 1, 3, 4, 6, and 8 returned true. Row 7, due today, returned false.

Power Automate Condition code view with less comparing a formatted date to today
A blank date becomes 9999-12-31, so it can never count as past due

How does this work? In yyyy-MM-dd, the year comes first, so alphabetical order matches date order. 2026-11-08 sorts before 2026-11-09.

Need today to count? lessOrEquals('2026-11-10','2026-11-10') returned true, while less() returned false. Learn how to check if a date is today for that exact case.

Why Does a Future Date Return True?

Here’s the mistake. November 20 is after November 10, yet this returned true:

less('11/20/2026','2026-11-10')
Power Automate less function wrongly returning true for a future date in US format
A future date came back as less than today, because the two formats don’t match

How does this work? The first character of 11/20/2026 is 1, and the first of 2026-11-10 is 2. Text comparison stops there. Formatting first returned the correct false:

less(formatDateTime('11/20/2026','yyyy-MM-dd'),'2026-11-10')

Method 2: Compare ticks() Values

Use the same dates here when your two values come in different formats. ticks() turns each one into a number first:

less(ticks('11/20/2026'),ticks('2026-11-10'))

It correctly returned false. It’s also a good base for date math, like a date difference in days.

How does this work? Numbers compare by value, so the format stops mattering. Remember that ticks() includes the time, so strip it when you only care about the day.

Watch Out for Timestamps From Today

A date from earlier today is less than utcNow(), because utcNow() includes the current time:

less(utcNow('yyyy-MM-ddT00:00:00Z'),utcNow())

That returned true. Compare against the start of the day instead:

less('2026-11-10T15:00:00Z',startOfDay('2026-11-10T20:00:00Z'))

It returned false, while the same check on November 9 returned true. Those functions pair nicely with expressions for yesterday’s date.

How Do You Handle a Blank Date?

Don’t let a blank reach less(). Passing null failed with this error:

The template language function 'less' expects two parameter of matching types. The function was invoked with values of type 'Null' and 'String'...
Power Automate less function InvalidTemplate error when a date value is null
less() with a null value stopped with InvalidTemplate

Oddly, less('','2026-11-10') returned true, so empty text looks overdue. Guard it, as covered in how to check if a date field is empty.

Things to Keep in Mind

  • Match formats. Use yyyy-MM-dd on both sides.
  • Pick a time zone. utcNow() is UTC, and it can be a day ahead of the US in the evening.
  • Guard blanks. Decide whether a missing date counts as overdue.
  • Filter early. Don’t loop over thousands of rows when a query can do it.

Frequently Asked Questions

How do I check if a date is before today in Power Automate?

Use less(formatDateTime(date,'yyyy-MM-dd'), today), where both sides use the same format.

Why is my date comparison wrong?

less() compares text when you pass strings. The expression functions reference covers ticks() for numeric comparison.

What does the less function do with null?

It fails with an InvalidTemplate error about matching types, so check with empty() first.

Should I use less or lessOrEquals?

Use less for strictly past dates and lessOrEquals when today also counts.

Can I use ticks to compare dates?

Yes. less(ticks(a), ticks(b)) compares numbers and worked with mixed date formats in my test.

More Power Automate Tutorials

Comparing dates usually leads to one of these: