cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
guyinazo
Level 8

get current date and time daylight time

I am in Michigan using Eastern Daylight Time (-4 GMT, not -5GMT).  I know I can use AddHours to UTCTime(), but how do I automatically account for either daylight savings time or standard time?  I dont want to have to remember to go in and modify the code during a time change and republish.

 

Thanks for the information.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: get current date and time daylight time

Hi @guyinazo,

 

The date time in microsoft flow would always in utc format.

I afraid that the only way is to use AddHours to UTCTime() as you mentioned.

 

 Best regards,

Alice

 

 

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: get current date and time daylight time

Hi @guyinazo,

 

The date time in microsoft flow would always in utc format.

I afraid that the only way is to use AddHours to UTCTime() as you mentioned.

 

 Best regards,

Alice

 

 

View solution in original post

Super User
Super User

Re: get current date and time daylight time

You could try calling out to AB external service such as Google’s Time API (or any other) and make a call for “get current time in city”.

Then you’d pass in your city, or a longitude and lattitude and it would return you the current time accounting for daylight saving.

You’d use a HTTP Request action for that.

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,088)