title: Get last 'N' quarters in C#
body: <p>Suppose the current quater is 3 and the year is 2011. How can I  get the last 5 quarters</p>
  
  <p>Desired output:</p>
  
  <pre><code>Q3-2011
  Q2-2011
  Q1-2011
  Q4-2010
  Q3-2010
  </code></pre>
  
  <p>The Q and '-' is appended.</p>
  
  <p>I am trying as under</p>
  
  <pre><code>int generateQuater = 5;
  
              int currentQuater = 3;//GetQuarter(DateTime.Now.Month);
              int currentYear = DateTime.Now.Year;
  
              List&lt;string&gt; lstQuaterYear = new List&lt;string&gt;();
  
              lstQuaterYear.Add(string.Concat('Q',currentQuater, '-', currentYear));
  
              for (int i = generateQuater; i &gt; 0; i++)
              {
                //code to be placed   
              }
  </code></pre>
  
  <p>Thanks</p>