cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AugustoEi
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
ScottShearer
Super User
Super User

@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

Screenshot_1.png

 

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

@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

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!

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (3,721)