I am developing a code where im getting the interval of two dates
DTLeavePayFrom = 1/1/2013
DTLeavePayTo = 1/14/2013
since 1/1/2013 is tuesday and 1/14/2013 is monday, the date diff of both date is 14
but how can i exclude the count of 2 sundays,
i have an existing code of date diff:
Dim daycount As Integer = DateDiff(DateInterval.Day, DTLeavePayFrom.Value, DTLeavePayTo.Value)
Please help me, Thanks alot!