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 Platform Community / Forums / Power Apps / How to set Now() to an...
Power Apps
Answered

How to set Now() to an India Standard Time irrespective of which time zone the app is been used

(0) ShareShare
ReportReport
Posted on by 130

Hi,

 

Suppose in the app, I am setting a variable - Set(CurrentDateTime, Now()) - & if the app is been used in any part of the world, what will be the date time displayed? Will it be the local datetime of which region the app is used?

 

Basically my question is - when I am setting the CurrentDateTime variable as above - I want to set it to India Standard Time, irrespective of which time zone the app is been used. 

 

Any pointers would be really helpful.

 

Thanks.

Categories:
  • Verified answer
    Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    There really is no easy way to do that.  But you can easily use TimeZoneOffset(localtime) to adjust any time entered locally to UTC.  Just use 

    addMinutes(Now(),TimeZoneOffset(Now()),Minutes)

    TimeZoneOffset(Now()) will automatically adjust the time from local to UTC based on whether Now() is in Daylight Savings or not.

  • TheOpeningBat Profile Picture
    130 on at

    Hi @Pstork1 - Thanks for your reply.

    If I use - Set(CurrentDateTime, DateAdd(Now(), TimeZoneOffset(Now()), Minutes) - Then even if I use the app in say India - It is setting the current time to UTC one & not the India one.

     

    Please suggest.

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    I agree, but that is the point.  There is no way to set the DateTime to a specific timezone.  You can either set it to UTC or local.  This is a way to translate automatically from ANY local time to UTC.  That way you have a known value that you can adjust to locally.

  • mogulman Profile Picture
    764 on at

    I use Azure SQL DB.  I set the database datefield datatype to datetimeoffset. Powerapps handles the timezone offset perfectly.

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 Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard