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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 468

#2
Haque Profile Picture

Haque 370

#3
Valantis Profile Picture

Valantis 354

Last 30 days Overall leaderboard