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

Compare Dates no longer working

Compare dates is no longer working. I have no idea what went wrong but it broke within the past month.

 

I can't seem to upload the images here so here is an imgur link: https://imgur.com/a/ZouwYkJ

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Compare Dates no longer working

 

Hi @atltt ,

 

I recommend that you use utcNow('yyyy-MM-dd') because the utcNow() output is Date and Time, which contains time.

 

The value of the field you are comparing seems to contain only the date, and the format is yyyy-MM-dd, so you need to format utcNow() into a consistent format.

 

In addition, you could use Compose above on the Condition to output the value of the Date field and the value of utcNow('yyyy-MM-dd') to see if their actual values are equal.

 

Hope it makes sense.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Super User
Super User

Re: Compare Dates no longer working

@atltt 

Hi there.  So, are you saying that this exact flow was working, and now it's not?  I'm wondering what the output from the previous step looks like.  Would you be able to post the JSON that includes the date information from the SharePoint grab?

 

Thanks!

-Ed-

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Community Support Team
Community Support Team

Re: Compare Dates no longer working

 

Hi @atltt ,

 

Please try to use utcNow('yyyy-MM-dd').

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
atltt
Level: Powered On

Re: Compare Dates no longer working

@v-bacao-msft Still does not work.

atltt
Level: Powered On

Re: Compare Dates no longer working

Updated to today: 

"NextCalibrationDate": "2019-11-11" so it should be working with utcNow().
Community Support Team
Community Support Team

Re: Compare Dates no longer working

 

Hi @atltt ,

 

I recommend that you use utcNow('yyyy-MM-dd') because the utcNow() output is Date and Time, which contains time.

 

The value of the field you are comparing seems to contain only the date, and the format is yyyy-MM-dd, so you need to format utcNow() into a consistent format.

 

In addition, you could use Compose above on the Condition to output the value of the Date field and the value of utcNow('yyyy-MM-dd') to see if their actual values are equal.

 

Hope it makes sense.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

atltt
Level: Powered On

Re: Compare Dates no longer working

Thanks, this and adding the column date as 'yyyy-MM-dd' as well made it work.

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

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 (Last 30 Days)
Users online (6,024)