cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ICEPOC
Level: Powered On

Date Comparison Expression - What is wrong?

Hi,

 

I am trying to only get rows where date_entered is 10 mins or more older. I keep getting an invalid expression when i input this:

 

@less(formatDateTime(items('Apply_to_each')?['date_entered'],'dd-MM-yyyThh:mm'), addMinutes(utcnow('dd-MM-yyyThh:mm'),-10))
 
Any help would be greatly appreciated.
 
Many Thanks

POC
 
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Date Comparison Expression - What is wrong?

@ICEPOC :

 

Take a look at the comments below this blog post.  Specifically the comments regarding comparing two dates from Roy Gilboa.  I believe this will help.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Date Comparison Expression - What is wrong?

@ICEPOC :

 

Take a look at the comments below this blog post.  Specifically the comments regarding comparing two dates from Roy Gilboa.  I believe this will help.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

ICEPOC
Level: Powered On

Re: Date Comparison Expression - What is wrong?

Hi @ScottShearer,


Thanks for the link.

 

Do you hapen to know if the 'ticks' work with addminute? Every example i see is always referencing the adddays expression.

 

Many Thanks

POC

Super User
Super User

Re: Date Comparison Expression - What is wrong?

@ICEPOC 

If you are using ticks, you'll need to convert minutes to ticks, add the ticks and then convert back.

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 126 members 5,332 guests
Please welcome our newest community members: