by Dr. John Nyhart (4 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Originally Published: Sat 6th May 2000
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
This function will return the number of business days between two dates.
Dim tmpDay As Integer
getBusDays = 0
Do Until SDate = EDate
tmpDay = Format(SDate, "w")
Select Case tmpDay
Case 2, 3, 4, 5, 6
getBusDays = getBusDays + 1
End Select '»Select Case tmpDay
SDate = DateAdd("d", 1, SDate)
Loop '»Do Until SDate = EDate
End Function
No comments have been posted about This function will return the number of business days between two dates.. Why not be the first to post a comment about This function will return the number of business days between two dates..