[#BloombergLP-bdlt-Datetime-addDaysIfValid] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Datetime.adoc[Datetime]::addDaysIfValid :relfileprefix: ../../../ :mrdocs: Add the specified number of `days` to the value of this object, if the resulting value is in the valid range for a `Datetime` object. Return 0 on success, and a non‐zero value (with no effect) otherwise. Note that this method has no effect on the "time" part of this object. Also note that `days` may be positive, 0, or negative. == Synopsis Declared in `<bdlt_datetime.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int addDaysIfValid(int days); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#