Date Difference, Excluding certain Times and Dates

Posted by Josefvz on Stack Overflow See other posts from Stack Overflow or by Josefvz
Published on 2010-04-07T08:25:10Z Indexed on 2010/04/08 7:23 UTC
Read the original article Hit count: 178

Filed under:
|
|

Hi Folks.

I'm looking for a way to determine the difference between two dates. A normal SQL DATEDIFF statement won't cut it because I need to excluded non working Hours and days Namely Weekends and any time between 16:00 - 7:00.

Something similar to the NETWORKDAYS function in excel.

I'm codeing an excel spreadsheet. Using VBA connect to a SQL server to pull data.

© Stack Overflow or respective owner

Related posts about sql

Related posts about excel