How to calculate 8 business days from today's date?

Posted by user309191 on Stack Overflow See other posts from Stack Overflow or by user309191
Published on 2010-04-21T09:45:10Z Indexed on 2010/04/21 9:53 UTC
Read the original article Hit count: 216

Filed under:
|

I have a scenario where i want to find the date by subtacting 8 business days from today's date. Suppose if today's date is 04/21/10 .Now i want to show the date to be 04/09/10.Weekends should be excluded.

For Example. If today's date is 04/21/10

Subtract Weekends : Saturday- 04/10/10 ,04/17/10 Sunday-04/11/10,04/18/10

The output comes out to be 04/09/10.

I would like to do this with C#.

Any help or suggestion would be helpful.

Thanks, Sumit

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#