Boost C++ Libraries: Ticket #4844: End of February 2000 is the 29 (resubmit) https://svn.boost.org/trac10/ticket/4844 <p> please refer to: <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/2708"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/2708</a> </p> <p> this issue was marked as closed/fixed in 2009 but it still persists </p> <p> for example, please see: <a href="http://www.boost.org/doc/libs/1_44_0/doc/html/date_time/gregorian.html">http://www.boost.org/doc/libs/1_44_0/doc/html/date_time/gregorian.html</a> </p> <p> the fix is: </p> <pre class="wiki"> date d(2000,Feb,1); -//gets Feb 28 -- 2000 was leap year +//gets Feb 29 -- 2000 was leap year date eom = d.end_of_month_day(); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4844 Trac 1.4.3 anonymous Fri, 12 Nov 2010 11:04:47 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4844#comment:1 https://svn.boost.org/trac10/ticket/4844#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks for reporting this. It was merged to the release branch in <a class="changeset" href="https://svn.boost.org/trac10/changeset/66268" title="Merge a couple of old documentation fixes for date_time. ">[66268]</a> so it will be fixed in the next release. </p> Ticket