title: get nth weekday of month in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/288513/how-do-i-determine-if-a-given-date-is-nth-weekday-of-the-month">How do I determine if a given date is Nth weekday of the month?</a>  </p>
  </blockquote>
  
  
  
  <p>How do i get the nth weekday of the month?</p>
  
  <p>For ex.: </p>
  
  <p>2nd Monday of "July 2010" = 07/12/2010.</p>
  
  <p>Looking for a function like:</p>
  
  <pre><code>public DateTime GetNthWeekofMonth(DateTime date, int nthWeek, DayOfWeek dayofWeek)
  {
  //return the date of nth week of month
  }
  </code></pre>
  
  <p>from the above, the parameters of the function will be ("Any Date in July 2010", 2, Monday).</p>