title: Getting a particular date using current date as reference
body: <p>I want to get two particular dates by using current date, let me explain more.</p>
  
  <p>For example if today is 10/27/2011 then I would like to have 7/01/2011 and 9/30/2011. Note that its a three month period (excluding current month) How can I do that ?</p>
  
  <p>Currently I am following a self designed method but I think its far from good. Here is the code.</p>
  
  <pre><code>    TimeSpan TSFrom = new TimeSpan(90 + DateTime.Now.Day, 0, 0, 0, 0);
      TimeSpan TSTo = new TimeSpan(DateTime.Now.Day, 0, 0, 0, 0);
      Response.Write(DateTime.Now.Subtract(TSFrom).ToShortDateString());
      Response.Write(DateTime.Now.Subtract(TSTo).ToShortDateString());
  </code></pre>
  
  <p>This code return these values</p>
  
  <p>7/2/2011 - 9/30/2011</p>
  
  <p>while its some what acceptable its still looks like not a perfect way to go and look the first date is starting from the second day of month while it should start from first day, I think its because some months end on 29 while some on 30. So how can I get the perfect dates like 7/1/2011 to 9/30/2011.</p>
  
  <p>Thanks.</p>