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
Pstork1
Dual Super User
Dual Super User

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.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

View solution in original post

1 REPLY 1
Pstork1
Dual Super User
Dual Super User

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.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,712)