[#BloombergLP-bdlt-DatetimeInterval-addDaysIfValid] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval]::addDaysIfValid :relfileprefix: ../../../ :mrdocs: Add to this time interval the specified number of `days`. Return 0 if the resulting time interval value is valid (i.e., the days field must not overflow an `int`) and a non‐zero value (with no effect) otherwise. == Synopsis Declared in `<bdlt_datetimeinterval.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int addDaysIfValid(int days); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#