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 Automate
Unanswered

Compare Dates

(0) ShareShare
ReportReport
Posted on by 42

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!
 
 
 
Categories:
  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @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

     

     

     

  • AugustoEi Profile Picture
    42 on at

    Screenshot_1.png

     

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

  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @AugustoEi 

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

     

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    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!

  • AugustoEi Profile Picture
    42 on at

    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

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 330

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 123

Last 30 days Overall leaderboard