title: Need to add days to a date, but exclude certain days from a calendar
body: <p>Working in Visual Studio with C#. I'm making a piece of software for a small office that captures lawsuits. Once a lawsuit is captured, the office has 15 days to send some documents to the tribunal. So deadLine is in 15 days.</p>
  
  <p>But if there is for example, and update (update1) to the lawsuit, the office now has a new deadLine to send update1 documents.</p>
  
  <p>So, deadLine for Capture is dd/MM/yyy
  Then, deadLine for update1 is dd/MM/yyyy</p>
  
  <p>But I need to exclude all non labor days, so the deadLines do not display any non labor days. Example:</p>
  
  <p>Capture: 15 days
  Update1: 5 days
  Update2: 10 days
  Update3: 7 days</p>
  
  <p>So, if I capture today, July 28 2011, 15 days should be added to the deadLine variable, which would be August 12, but I have to exclude non labor days from a calendar. For example August 12 2011.</p>
  
  <p>I've turned the DatePicker value to string, with format (dd/MM/yyyy), and I'm comparing it to a list of strings of non-valid days, with format (dd/MM/yyyy).</p>
  
  <p>And if the deadLine falls on one of these days, I convert deadLine to dateTime, add 1 day, until it does not fall on one of these days. Then save the final dateTime value as the new deadLine.</p>
  
  <p>Example:</p>
  
  <pre><code>string DeadLine;
  string NonValidDay001 = 12/08/2011;
  string NonValidDay001 = 15/08/2011;
  string NonValidDay001 = 19/08/2011;
  
  DeadLine = DatePicker01.Value.AddDays(15).ToString("dd/MM/yyyy");
  
  while (DeadLine == NonValidDay001 | DeadLine == NonValidDay001 | DeadLine == NonValidDay001)
  {
      dateTime dt = Convert.toDateTime(DeadLine);
      dt.AddDays(1).ToString("dd/MM/yyyy");
      DeadLine = dt;
  }
  </code></pre>
  
  <p>The problem I'm having is, it is not adding days to the dealine if deadline matches non-valid days.</p>
  
  <p>What I'm doing is not working in any way.</p>
  
  <p>Could anyone enlighten me please. (=</p>