Calculating the Number of Specific Weekdays Between Two Dates

Posted on Wed 27 January 2021 in Algorithms • Tagged with Date & Time, Java, Scala

When modeling recurring events, e.g. business days for a shop, we can encounter the problem of calculating how many times the event occurs between two specific dates. In the business days example, the question may be "How many business days are there betweeen May 2nd 2020 and December 31th …


Continue reading