Check if this Monday is last Monday in a month
<p>I use  this code from another question:</p>

<pre><code>private bool NthDayOfMonth(DateTime date, DayOfWeek dow, int n){
  int d = date.Day;
  return date.DayOfWeek == dow &amp;&amp; (d-1)/7 == (n-1);
}
</code></pre>

<p>It works fine.  But it not checks a last day ( for me it's when n = 5). How to modify it?<br>
Thanks.</p>
