For our support software in C#, I need to determine the time span between two DateTimes, but I only want opening hours counted (i.e. weekdays from 09:00 to 17:00).
S
You can try this Algorithm:
Working Hours = TotalHours - 24*holidays - 16*WorkingDays
(16 = Time difference between 5pm and 9am the next day)