.NET Date Compare: Count the amount of working days since a date?

前端 未结 7 1157
别那么骄傲
别那么骄傲 2020-12-03 08:16

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

7条回答
  •  广开言路
    2020-12-03 09:03

    We combined two CodeProject articles to arrive at a complete solution. Our library is not concise enough to post as source code, but I can point you to the two projects we used to achieve what we needed. As always with CodeProject articles, read the comments, there may be important info in them.

    Calculating business days:http://www.codeproject.com/KB/cs/busdatescalculation.aspx

    An alternative business day calc: http://www.codeproject.com/KB/cs/datetimelib.aspx

    Calculating Holidays:http://www.codeproject.com/KB/dotnet/HolidayCalculator.aspx

提交回复
热议问题