cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ReyOrtiz
Helper II
Helper II

Adding Dates

Hi All

I working on a project, and I need to create a flow that will take the date on a column and add the requested time; for example, if the date is 8/3/22 and I need the Monday in 2 weeks from the date, this will reflect into a Calendar.

I appreciate the help.

1 ACCEPTED SOLUTION

Accepted Solutions
Rhiassuring
Super User
Super User

Hi there, 

 

You can use the addDays functionality. 

Create a Compose action. Click on Expression. Type in "addDays()". In the brackets, point to the Dynamic Content that holds your date (for example, an output from SharePoint). Then, type a comma, and the amount of days you want to add - ie, 14 for 2 weeks.

 

ie, addDays(FIELD,2)

EDIT: Sorry I just noticed the Monday part. Would it be the Monday following the 2 week mark? Or the closest Monday to the 2 week mark?

View solution in original post

2 REPLIES 2
Rhiassuring
Super User
Super User

Hi there, 

 

You can use the addDays functionality. 

Create a Compose action. Click on Expression. Type in "addDays()". In the brackets, point to the Dynamic Content that holds your date (for example, an output from SharePoint). Then, type a comma, and the amount of days you want to add - ie, 14 for 2 weeks.

 

ie, addDays(FIELD,2)

EDIT: Sorry I just noticed the Monday part. Would it be the Monday following the 2 week mark? Or the closest Monday to the 2 week mark?

That worked, and it made it easier to write an expression from scratch; I like that shortcut, thank you

Helpful resources

Announcements
 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.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,974)