for more details.

    </p>
<pre class="programlisting"><span class="keyword">using namespace</span> boost::gregorian;
    date weekstart(<span class="number">2002</span>,Feb,<span class="number">1</span>);
    date weekend  = weekstart + weeks(<span class="number">1</span>);
    date d2 = d1 + days(<span class="number">5</span>);
    date today = day_clock::local_day();
    if (d2 &gt;= today) {} <span class="comment">//date comparison operators</span> 

    date_period thisWeek(d1,d2);
    <span class="ke