[#BloombergLP-bdlt-Date-addDaysIfValid]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Date.adoc[Date]::addDaysIfValid
:relfileprefix: ../../../
:mrdocs:

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`)&period; Return 0 on success, and a non&hyphen;zero value (with no effect) otherwise&period; Note that `numDays` may be negative&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;date&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
addDaysIfValid(int numDays);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
