eekday(d4, Sunday); <span class="comment">//calculate Sunday following d4

    //US labor day is first Monday in Sept</span> 
	<span class="keyword">typedef</span> nth_day_of_the_week_in_month nth_dow;
    nth_dow labor_day(nth_dow::first,Monday, Sep); 
    <span class="comment">//calculate a specific date for 2004 from functor</span> 
    date d6 = labor_day.get_date(<span class="number">2004</span>); 
    </pre>
<p>    

      The following provides some example code using times.
      See <a class="link"