cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (9,388)