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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (56,732)