cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Compare Dates

Hi,

 

i viewed a few topics like this but nothing worked for me.

 

i'm trying to make an workflow to send an email 60 days early from a date field (expressed in dd/MM/yyy), but when i use

formatDateTime(utcNow(),'dd-MM-yyyy') un a condition the exit is false, i already tried to set a variable and compare but nothing works, please hewlp!
 
 
 
5 REPLIES 5
Highlighted
Super User III
Super User III

Re: Compare Dates

@AugustoEi 

Is your data stored in SharePoint?

Can you verify that the column is date only and not date and time?

Please post a screen shot of your Flow.

In my example below, the date is in a column called MyDate:

MyDate.jpg

 

 

 

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

Scott
Highlighted
Helper I
Helper I

Re: Compare Dates

Screenshot_1.png

 

yes, the date field is stored in a sp list field (i posted the img previusly)

Highlighted
Super User III
Super User III

Re: Compare Dates

@AugustoEi 

Please take a look at my post above which was updated.

 

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

Scott
Highlighted
Dual Super User III
Dual Super User III

Re: Compare Dates

Hi @AugustoEi 

 

Also, can you ensure that the date format that you are doing is 'yyyy-MM-dd' as SP also returns the date in the same format?

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Helper I
Helper I

Re: Compare Dates

Yes, the output is dd/MM/yyyy, i'm uploading the pic where is only date, the variable i'm using and the sp field asigned to the var

 

 

assing.png

void string.png

only date.png

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (3,358)