[#BloombergLP-bdlt-CalendarUtil-shiftModifiedFollowingIfValid]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/CalendarUtil.adoc[CalendarUtil]::shiftModifiedFollowingIfValid
:relfileprefix: ../../../
:mrdocs:

Load, into the specified `result`, the date of the chronologically earliest business day that is on or after the specified `original` date, unless a date cannot be found in the same month, in which case load the chronologically latest business day before the `original` date based on the specified `calendar`&period; Return 0 on success, and a non&hyphen;zero value, without modifying `&ast;result`, if the `original` date is not within the valid range of `calendar` or a valid business date cannot be found according to the above algorithm within the valid range of `calendar`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
shiftModifiedFollowingIfValid(
    xref:BloombergLP/bdlt/Date.adoc[bdlt::Date]* result,
    xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& original,
    xref:BloombergLP/bdlt/Calendar.adoc[bdlt::Calendar] const& calendar);
----


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