What\'s the easiest way to compute the amount of working days since a date? VB.NET preferred, but C# is okay.
And by \"working days\", I mean all days excluding Satu
Here is a sample of Steve's formula in VB without the holiday subtraction:
Function CalcBusinessDays(ByVal DStart As Date, ByVal DEnd As Date) As Decimal
Dim Days As Decimal = DateDiff(DateInterval.Day, DStart, DEnd)
Dim Weeks As Integer = Days / 7
Dim BusinessDays As Decimal = Days - (Weeks * 2)
Return BusinessDays
Days = Nothing
Weeks = Nothing
BusinessDays = Nothing
End Function