cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dayananthan
Helper I
Helper I

How to display current EST Time In Label

I need to display current EST time in a label in Powerapps. Any suggestions as day light saving also should be taken care automatically. 

8 REPLIES 8
RandyHayes
Super User III
Super User III

@Dayananthan 

Are you stating that you are in EDT zone currently and you want to display EST instead (since it is currently EDT not EST)?

Or are you in another time zone and want to display the time for the Eastern Time Zone?

 

If you're in the ET zone, then and you just want to display the current time in a label, you can add a label and set the Text property to :  Text(Now(), "hh:mm:ss")

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

I am in different time zone and want to display current EST time in a label.

Are you stating that you are in EDT zone currently and you want to display EST instead (since it is currently EDT not EST)?

Or are you in another time zone and want to display the time for the Eastern Time Zone?

 

Thanks Randy for you reply. @RandyHayes 

 

-- I am in diffrent time zone and want to display Current EST time in a label.

@Dayananthan 

So the only function at your disposal for this will be the TimeZoneOffset function.  And, it will sort of be a partial solution.

I would consider as a first step convert your current time to UTC - 

DateAdd(Now(), TimeZoneOffset(), Minutes)

Then apply an offset to that with DateAdd for your ET.

DateAdd(DateAdd( Now(), TimeZoneOffset(), Minutes ), -4, Hours)

This will adjust the UTC by the ET (-4) hours.  

Now...you can see, this is the partial solution part as it will not account for DST.

 

You might also want to browse this thread recently posted dealing with TimeZone conversions and how to get accurate results.  Perhaps that will give you some more detail based on your scenario.

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Pstork1
Dual Super User III
Dual Super User III

PowerApps by default can easily show time in the local timezone of the device or in UTC timezone using 

Text(Now(),DateTimeFormat.UTC) for UTC and Text(Now(),DateTimeFormat.Local) for local timezone.  But there is no functionality for changing to a specific timezone.  If you know the offset from UTC you can calculate a specific timezone time using the DateAdd function.  For Eastern time it would be -5, hours.  But that won't adjust for daylight savings time automatically.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thank you @Pstork1 @RandyHayes  for your valuable suggestions. I am searching for any way to take care daylight savings time automatically. May be need to try with some pre-populated Offset table information.

@Dayananthan 

One potential possible long-shot obscure method MIGHT be to have some sort of list of every date in every time zone you care about.  If the date contains the TimeZone information, then you can use that date in the TimeZone function - this will then automatically determine the proper adjustment.

The other option is to use a connector to a online timezone service.  There you can pass the timezone or geolocation information to it and get the current time in that location.  There are a bunch of Time Zone API REST services out there.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Great I will check it out. Thank you @RandyHayes 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,553)