How to get the number of working days between two days?
Is there any way to capture duration between two days from a SQL query by excluding calendar events(Holidays), Saturdays and Sundays?
example:
Start Date - 4th Feb 2022
End Date - 8th Feb 2022
calendar days - 4, 5, 6, 7, 8 -> duration is 5
working days - 4, 7, 8 -> duration is 3
I tried to get the working days by substract end date and start date, but it shows calendar day duration,
is there any simple way to capture only the working days?