I'm looking to calculate the time in between 2 dates. I've been using DateComponentsFormatter, which works great for outputting properly in all languages/regions/calendars.
I'd like to add the ability to exclude weekends from this calculation. It doesn't seem to support this natively. Is there a good alternative (native or 3rd party libraries) to remove a set of dates from the calculation?
You can perform this type of calculation natively using the
CalendarAPI; you're just going to have to write it manually: