web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Having trouble with ge...
Power Automate
Unanswered

Having trouble with getting today's date for a condition

(0) ShareShare
ReportReport
Posted on by 242

Hello

My Flow depends on a column (Future Approval Date) equals Today. I live in Australia so date format is dd/MM/yyyy

 

What I have so far is if 'Future Approval Date' is equal to formatDateTime(utcNow(),'ddMMyyyy') (which needs to be Today) then proceed.

 

I've tried just utcNow() and put in a convert time zone as well and that doesn't work either.

Not sure if convert time zone is necessary but I've been battling with this for a long time. Flow just goes down the No side and doesn't work.

 

1.png

Categories:
I have the same question (0)
  • Gristy Profile Picture
    2,429 on at

    Im in australia and hate working with dates too.

     

    Dont know if it will help but i think your convert time zone is wrong. it should be "(UTC) Coordinated Universal Time"

     

    The best thing for you to do is to chuck in some compose actions with the two sides of your condition and compare them to see why they do not match. SharePoint Date/Time column's always have a time in them even if not set i.e. 00:00 so you may have more luck with contains rather than equals.

  • spinneroo Profile Picture
    242 on at

    Hi thanks for your response.

    I changed it to the correct univesal time.

    I'm not sure what you mean by compose actions. Can you explain further?

  • gristcooper Profile Picture
    25 on at

    Search for Compose in the actions.

    Add a couple of them,

     

    In one put the data from SharePoint in the Other put your output from the converted date and time.

     

    Once the flow runs, look at the run history and you will see exactly what each side of the condition looks like.

  • spinneroo Profile Picture
    242 on at

    I found the issue.

     

    Firstly I did a couple of other things. I followed this tutorial on creating a TodayDate column.

     

    Then I said if Future Approval Date = TodayDate then etc etc

     

    While looking at the compose actions, I noticed the Flow started working after midday today. Even though I have convert time zone, for some reason it is running behind. Not sure how to fix that  but my condition works, which is the main thing. 

     

    Do you have any further ideas on how to fix the time issue?

    Thanks for your help so far 🙂

  • Gristy Profile Picture
    2,429 on at

    Please show the examples of what you mean 🙂

  • spinneroo Profile Picture
    242 on at

    Not sure how to show examples

    The TodayDate was one day behind up until midday. As soon as midday clicked over, it changed.

     

    1.png2.png

     

  • Gristy Profile Picture
    2,429 on at

    Hi,

     

    Sorry i meant after the flow has run, you can inspect it and see what values actually are.

     

    It looks like you are not using the converted time at all though, you are using a SharePoint Column rather than the output of the conversion action

     

     

  • spinneroo Profile Picture
    242 on at

    Ok, thank you 🙂
    Can you tell me how I use the converted time? I didn't see anything on that when I was looking at tutorials.

    Should I put TodayDate in the base time field?

  • Gristy Profile Picture
    2,429 on at

    Hey, if you click in the condition, you should see in the dynamic data the output from the action instead of the sharepoint icon it will have the same icon.

  • spinneroo Profile Picture
    242 on at

    I'm sorry but you have completely lost me.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard