Add number of days(excluding weekends) to a given date and return the new date.
subramanir2143 opened this issue · 8 comments
Given the number of days and date, write a function to add the number of days (excluding weekends) to the date and return a new date.
Example:
If the number of days is 3 and date is Oct 09, 2020, then the function must return Oct 14, 2020
@Chalarangelo , is this a valid scenario that would need working on?
I'd rather have a countWeekDaysBetween
snippet that returns how many weekdays are between two days. So in your example, it would take Oct 09, 2020
and Oct 14, 2020
and return 3
. Could you implement that?
Yes. On it.
Change done in #1512
Thanks. While we are looking at the PR, you can submit another PR with the addWeekDays
you mentioned. We took a quick look and it also seems reasonably valuable. 😉
Yeah sure!
Done! #1517
Resolved in #1517