We frequently have to work out a date based on a number of working days before or after a specified date, excluding Saturdays and Sundays.
Attached is the script to create the function. I call another function called fn_Midnight which was designed to help whe programmers get a date with no time portion without having to remember the CONVERT function (actually, at the time I didn't know it either, but it works).
Hope you find it useful.
2007-10-02 (first published: 2002-06-20)
15,450 reads