Closed eric-gonzalez-tfs closed 3 years ago
Thanks for reporting. It's a function that I personally never used and that it was added long before I began looking at the project. I think function is poorly named and documented even worse! This function returns the amount of days since the beginning of the month. I'll correct the documentation and I'm glad that you found a workaround.
Thanks again for bringing this up. Turns out that the function was incredibly buggy! If a month started on a non-business day, it would return the previous month! I corrected it and added more tests.
Hello all,
I am trying to use this library specifically for
businessDaysIntoMonth()
but I cannot seem to get it to work.I can confirm the date used in the
tests/test.js
works with my environment. However, when I change it to another date or the currentmoment
the function does not return the appropriate value.I did notice however that the
monthBusinessDays
is working appropriately and can be used as a workaround.