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
Answered

Get Now Date Time

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello 

 

 

I need help to set date and time when i run the flow it give always +2 hours for example if its 1 pm so it gives me 3 am 

any help???

 

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    faustocapellanj Profile Picture
    1,662 on at

    Hi @Anonymous,

     

    You can start with the following function. In this function, you add 2 hours to the utcNow(). Just remember the utcNow() date and time will vary based on your time zone.

    addHours(utcNow(), +2)
  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    The UTCNow() function currently could only return the time in UTC time zone, and Microsoft Flow as an Online service, currently could only work with time in UTC time zone.

    If you would like it to display in local time zone, then please take use of the Addhours funciton to deal with the time lag.

    For example, if your time zone is PST, then to display the time correctly, you would need to take use of expression as below for the UTCNow():

    AddHours(UTCNow(),-8)

    For how to take use of expression, check the blog below:

    Use expressions in flow actions

    Please refer to the Working with dates part.

    Regards,

    Michael

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hello @faustocapellanj

     

     

    Thank you for the reply i was using only utcnow() and in beirut its utc + 2 hours so now i used 

    addHours(utcNow(),-14) so your proposed solution worked properly .

     

     

    2134657687.png

     

     

    Regards

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hello @v-micsh-msft

     

     

    Thank you for the reply i was using only utcnow() and in beirut its utc + 2 hours so now i used 

    addHours(utcNow(),-14) so your proposed solution worked properly thank you.

     

     

    2134657687.png

     

     

    Regards

  • sailajagovind Profile Picture
    4 on at

    TodayDate and current time in intialize variable use PowerAutomate

  • sedrickd Profile Picture
    5 on at

    Thank you so much! This is so helpful

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard