cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ramiz
Helper II
Helper II

Current Date problem in Flow

Hi,
I have created a flow and I am using a formula formatDateTime(utcNow(),'yyyy-MM-dd')  to get current date.

The problem is my flow is a recurrence and when it runs at the specified time its not calculating the current date but when I am running it manually by clicking the start button its giving me correct and current date. 
As you can see in the below images the same flow ran on the same date but different time and its giving different date using the formula i mentioned above. 

Screenshot_1.png

 

Screenshot_2.png

1 ACCEPTED SOLUTION

Accepted Solutions
Jcook
Super User III
Super User III

Hello @Ramiz 

 

Try this expression:

 

convertFromUtc(utcNow(), 'Arab Standard Time', 'yyyy-MM-dd')


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

5 REPLIES 5
Mira_Ghaly
Dual Super User II
Dual Super User II

@Ramiz

Please check the time zone on your recurrence trigger

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

Hi @Mira_Ghaly 

Thanks for the answer but i didnt select any timezone in the recurrence trigger but now I have selected the timezone and will test it.

@Mira_Ghaly  I tested with time zone as well but still its giving me wrong date.


Screenshot_1.png

Jcook
Super User III
Super User III

Hello @Ramiz 

 

Try this expression:

 

convertFromUtc(utcNow(), 'Arab Standard Time', 'yyyy-MM-dd')


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

@Jcook  I tested with this and it worked. Thanks for the answer.

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (4,925)