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 check if DST (D...
Power Apps
Answered

How to check if DST (Daylight Saving Time) is in effect

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Is it possible in powerapps to check and see if DST is in effect on someone's laptop and/or device?

 

If so how can this be modified ?

If(TimeZoneOffset() > 0, "-", "+")
& RoundDown(Abs(TimeZoneOffset()) / 60, 0)
& ":"
& If(Mod(Abs(TimeZoneOffset()), 60) < 10, "0", "")
& Mod(Abs(TimeZoneOffset()), 60)

 

Thanks

Dave

Categories:
I have the same question (0)
  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Anonymous 

     

    Suppose a Label called Label2

     

    In this Label called Label2, for Text property, use only part of your original formula like this:

     

     

    If(TimeZoneOffset() > 0, "-", "+")
    & RoundDown(Abs(TimeZoneOffset()) / 60, 0)

     

     

    Suppose another Label called Label3

     

    In this Label called Label3, for Text property, use a formula like this:

     

     

    If(Value(Label2.Text) = -7,"MST",If(Value(Label2.Text) = -6,"MDT","Other"))

     

     

    Now, you can temporarily change the Text property of Label2 to simulate expected values.

    Change Text property of Label2 to -8. Label3 text should now say Other

    Change Text property of Label2 to -7. Label3 text should now say MST

    Change Text property of Label2 to -6. Label3 text should now say MDT

     

    Now, change Text property of Label2 back to the correct real formula:

     

     

    If(TimeZoneOffset() > 0, "-", "+")
    & RoundDown(Abs(TimeZoneOffset()) / 60, 0)

     

     

    Check if something like the above helps you.

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 Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard