[#BloombergLP-bdlt-Date-addDaysIfValid] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Date.adoc[Date]::addDaysIfValid :relfileprefix: ../../../ :mrdocs: Add `numDays` if the result is a supported date; otherwise do nothing. == Synopsis Declared in `<bdlt_date.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int addDaysIfValid(int numDays); ---- == Description Set this object to have the value that is later by the specified (signed) `numDays` from its current value, if the resulting value falls within the range of dates supported by this class (see `isValidYearMonthDay`). Return 0 on success, and a non‐zero value (with no effect) otherwise. Note that `numDays` may be negative. == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *numDays* | signed number of days to add |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#