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

Get 3 working/business days before date

Hi folks,

 

Previously i raised a discussion on a specific business day.

However i am not too familiar with the flow. How do we change it to 3 working days before date (E.g. 28th Oct 2020)?

If it is 28th Oct, then the new date will be 23rd Oct since 24th and 25th oct is weekend.

 

Get specific business days before a specific day on the month 

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @NewUser22,

 

You could use dayOfWeek() function to get the the day of the week from the specified timestamp where Sunday is 0, Monday is 1, and so on. If it is less than or equals to 3, use addDays() function to sub 5 days, including weekend, or just needs to sub 3 days:

dayOfWeek(outputs('Compose'))
addDays(outputs('Compose'),-5,'yyyy-MM-dd')
addDays(outputs('Compose'),-3,'yyyy-MM-dd')

Screenshot 2020-10-28 152010.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-litu-msft
Community Support
Community Support

Hi @NewUser22,

 

You could use dayOfWeek() function to get the the day of the week from the specified timestamp where Sunday is 0, Monday is 1, and so on. If it is less than or equals to 3, use addDays() function to sub 5 days, including weekend, or just needs to sub 3 days:

dayOfWeek(outputs('Compose'))
addDays(outputs('Compose'),-5,'yyyy-MM-dd')
addDays(outputs('Compose'),-3,'yyyy-MM-dd')

Screenshot 2020-10-28 152010.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,269)