[#BloombergLP-bdlt-DateUtil-addMonthsNoEom] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DateUtil.adoc[DateUtil]::addMonthsNoEom :relfileprefix: ../../../ :mrdocs: Return `original` advanced by `numMonths` without EOM preservation. == Synopsis Declared in `<bdlt_dateutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlt/Date.adoc[Date] addMonthsNoEom( xref:BloombergLP/bdlt/Date.adoc[Date] const& original, int numMonths); ---- == Description Return the date that is the specified `numMonths` from the specified `original` date, adjusted as necessary according to the following (non‐end‐of‐month) rule: if the day of the month in `original` does not exist in the month of the result (e.g., February 29, 2001), move the resulting date to the last day of the month. The behavior is undefined unless the operation results in a valid `Date` value. Note that `numMonths` may be negative. == Return Value resulting date == Parameters [cols="1,4"] |=== | Name| Description | *original* | starting date | *numMonths* | months to add (may be negative) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#