I am trying to find a way of getting the number of "working" days (M-F) between two dates. I don't think I can do this with DateDiff. Is there any other function of method of doing this? Can you write your own functions in SQLServer? I would appreciate any advice.