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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating Business Days Between Dates

Status
Not open for further replies.

mapatterson

Technical User
Mar 29, 2000
1
0
0
US
I need to be able to determine the number of business days between two dates. Is there a function in DB2 that can be used to do this? Holidays are another issue... I only want to calculate the number of actual work days between dates. Any help will be greatly appreciated.
 
Hi mapatterson,

I don't believe that there is a function to do this, but I could probably come up with a pretty complicated bit of SQL to do it. If you're interested let me know.

Marc
 
The service department at my work demanded about the same type of calculation. I created a calender file ommitting weekends and other holidays. I gave each record a counter, so calculating working days is just a matter of subtracting two integers.
Do not try to solve this SQL-wise, it is the hard way.....
T. Blom
Information analyst
tbl@shimano-eu.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top