[#BloombergLP-bdlt-Calendar-getNextBusinessDay-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Calendar.adoc[Calendar]::getNextBusinessDay
:relfileprefix: ../../../
:mrdocs:

Load the `nth` business day after `date` into `nextBusinessDay`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
getNextBusinessDay(
    xref:BloombergLP/bdlt/Date.adoc[Date]* nextBusinessDay,
    xref:BloombergLP/bdlt/Date.adoc[Date] const& date,
    int nth) const;
----

== Description

Load, into the specified `nextBusinessDay`, the date of the specified `nth` business day in this calendar following the specified `date`&period; Return 0 on success &hyphen;&hyphen; i&period;e&period;, if such a business day exists, and a non&hyphen;zero value (with no effect on `nextBusinessDay`) otherwise&period; The behavior is undefined unless `date &plus; 1` is both a valid `bdlt&colon;&colon;Date` and within the valid range of this calendar, and `0 &lt; nth`&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nextBusinessDay*
| receives the requested business day on success
| *date*
| date after which to count business days
| *nth*
| one&hyphen;based count of business days to advance
|===


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