DATEDIFF in Business Working Hours & Days Only
问题 I am trying to write a report and am a little stuck :/ I am trying to show the hours and minutes between two dates however minus the non business working hours. Example a business works weekdays between 08:00 until 17:00 and a call was logged at 16:00 today and closed tomorrow at 16:00 so that would be 24 hours minus the business hours so would work out at 9 hours. I have also created a seperate table which holds all the days of the years except weekends and the start of the business working