cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Add days in convert time action

How to adddays in convert time zone action? Like I want previous date not the current date and it should be in Eastern time format not in UTC. ?

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Add days in convert time action

You can't add days in the Convert time zone.  But if the Convert time zone calculation would take you to tomorrow or yesterday then the date will also change.  You can AddDays to a TimeSpan inside a ConvertTimezone function if you want for example the date time 7 days from now in the local timezone.  Something like this

convertFromUtc(addDays(utcNow(),7),'Eastern Standard Time')


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

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: Add days in convert time action

You can't add days in the Convert time zone.  But if the Convert time zone calculation would take you to tomorrow or yesterday then the date will also change.  You can AddDays to a TimeSpan inside a ConvertTimezone function if you want for example the date time 7 days from now in the local timezone.  Something like this

convertFromUtc(addDays(utcNow(),7),'Eastern Standard Time')


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

View solution in original post

Helpful resources

Announcements
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
Users Online
Currently online: 214 members 5,701 guests
Please welcome our newest community members: