VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Count Days Between Two Dates (with or without weekends)

Todd Main  (1 Submission)   Math/Dates   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Counts the number of days between two dates with a choice to include/exclude the number weekend days in the total count. This can be used to calculate items like day-based thresholds.
This can modified (by your own modifications) to exclude specific days like holidays.

Inputs
dtFirstDate dtSecondDate fNoWeekend

Returns
Integer number of days between two dates.

Side Effects
None known.

Rate Count Days Between Two Dates (with or without weekends) (3(3 Vote))
Count Days Between Two Dates (with or without weekends).bas

Count Days Between Two Dates (with or without weekends) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters