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 / Using UTC time not wor...
Power Automate
Unanswered

Using UTC time not working

(0) ShareShare
ReportReport
Posted on by

Hi All

I am trying to write a flow that references a table in excel, finds today's date in the list and emails that relevant person on that line. I am using the 'List rows present in a table' function with a filter on the DateText column (I have created a column in the excel table to convert the date to text). In the filter column I have put DateText eq '[fx UTCNOW('dd/mm/yy')]' (I have used the expression not just typed it). When I run the flow it seems to run but returns no results, when I check the flow it seems to create a random month, which means it returns no results. See screenshots below.

 

Thanks in advance for any help

Capture1.PNGCapture2.PNG

 

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Anonymous 

    I don't believe the issue is with utcNow().  Rather, your issue results from the fact that Excel store dates differently than Flow expects.  Take a look at this blog post for a full explanation and a way forward.

     

     

  • Community Power Platform Member Profile Picture
    on at

    @ScottShearer 

     

    Thanks for responding, however I already suspected that might be the case hence the reason I have created a column in my excel table to convert the date to text rather than, but if you look at my flow test results the utcnow() function has generated a random month it is generating '13/05/20' rather than '13/02/20' which is what I would expect.InkedCapture2_LI.jpg

  • Verified answer
    RobElliott Profile Picture
    10,323 Super User 2025 Season 2 on at

    In Power Automate months are always in upper case MM. Lower case mm is for minutes.

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • Community Power Platform Member Profile Picture
    on at

    I have just tried removing the utcnow() function and manually typed in today's date and it worked fine, so there is clearly something I am getting wrong with the utcnow() function.

    Capture3.PNG

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @Anonymous 

     

    Please see my flow below:

    Replace 'Mountain Standard Time' with your time zoneReplace 'Mountain Standard Time' with your time zone

     The expression i am using is:

    convertFromUtc(utcNow(),'Mountain Standard Time','dd/MM/yy')

    Replace 'Mountain Standard Time' with anytime zone from here:

    https://docs.microsoft.com/en-us/previous-versions/windows/embedded/gg154758(v=winembedded.80)?redirectedfrom=MSDN

     

    —Josh
    If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others
     

  • Community Power Platform Member Profile Picture
    on at

    Well that was an embarrassingly simple fix... Thank you very much. I can't believe I missed that!!

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard