Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How many days between dates EXCLUDING weekends 1

Status
Not open for further replies.

Stoffel24

Technical User
Apr 4, 2002
121
ZA
Is there a way of determining the number of days between 2 dates excluding the weekends? A lab receives samples. They have 2 working days to complete the sample. I wish to determine how long it has taken them to complete the work.

Eg
Select sample_number, date_recieved, date_completed, datediff(dd,date_recieved, date_completed) (Syntax not checked here!) from sample

This simply returns the number of days between the dates. I now need to substract the number of days in this bunch that are weekends.

Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top