title: How to get an exact 6 month date range?
body: <p>I need a help to get the six-month range from the current date. For example, if the current date is <code>02-Feb-2016</code> then I would want start date <code>01-Sep-2015</code> and an end date <code>29-Feb-2016</code>. </p>
  
  <p>I have tried the code:</p>
  
  <pre><code>DateTime date = new DateTime(2016,02,06);
  DateTime endDate = new DateTime(date.Year, date.Month, 1).AddMonths(1).AddDays(-1);
  DateTime startDate = endDate.AddMonths(-6);
  </code></pre>
  
  <p>And Output is:</p>
  
  <pre><code>Startdate: 29-Aug-2015 endDate: 29-Feb-2016
  </code></pre>
  
  <p>But I want the following output:</p>
  
  <pre><code> Startdate: 01-Sep-2015 endDate: 29-Feb-2016
  </code></pre>
  
  <p>Update:</p>
  
  <p>I have updated the question with an example which I had tried and output. </p>
  
  <p>juharr's comment is the work for me.</p>