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 / Comparing date in an e...
Power Automate
Answered

Comparing date in an excel sheet with today's date

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

I have an Excel sheet with names in one column, emails in another and a date column with format "dd-MM-yyyy" (for instance 19.05.2024 for May 19th 2024). I am setting up a flow to loop through the date column and if the date is equal to today's date, then the flow should tag the person in a channel post in Teams with the email column.

 

Everything is working well except for the part comparing the dates. I look at the raw output in Power Automate and I do not get any matches with today's date because the format of the date in the Excel sheet is read as "45341" for instance. I have tried to do the comparison by writing formatDateTime("DateColumn",'dd.MM.yyyy') is equal to formatDateTime(utcNow(),'dd.MM.yyyy') but that does not work either. The flow just runs without any matches.

 

Any ideas? I have tried to format the column in the Excel sheet in different ways, short date, text, number, but it does not work.

Skjermbilde 2024-05-15 144236.png
Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @andmik,

    Here are two tips for your reference:

    1). You need to configure the List rows present into a table action as below:

    vqiaqimsft_0-1715834034893.png

    2). Configure the condition as below:

    vqiaqimsft_1-1715834360083.png

    formatDateTime(utcNow(),'yyyy-MM-dd')
  • andmik Profile Picture
    4 on at

    Thanks! I had to add

    formatDateTime([DateField],'yyyy-MM-dd')

    as well in the condition step. It works now!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 523

#2
Valantis Profile Picture

Valantis 318

#3
David_MA Profile Picture

David_MA 235 Super User 2026 Season 1

Last 30 days Overall leaderboard