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

`getNextBusinessDay` overloads

== Synopses

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

Return the date of the first business day following the specified `initialDate`&period; For dates outside of the range of this calendar, only weekend days are considered non&hyphen;business days&period; The behavior is undefined if every day of the week is a weekend day, or if the resulting date would otherwise exceed the value `Date(9999, 12, 31)`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlt/Date.adoc[Date]
xref:BloombergLP/bdlt/Calendar/getNextBusinessDay-0d.adoc[getNextBusinessDay](xref:BloombergLP/bdlt/Date.adoc[Date] const& initialDate) const;
----

[.small]#xref:BloombergLP/bdlt/Calendar/getNextBusinessDay-0d.adoc[_» more&period;&period;&period;_]#

Return the date of the specified `nth` business day following the specified `initialDate`&period; For dates outside of the range of this calendar, only weekend days are considered non&hyphen;business days&period; The behavior is undefined unless `initialDate` is within the valid range and `1 &lt;&equals; nth` (or if every day of the week is a weekend day, or if the resulting date would otherwise exceed the value `Date(9999, 12, 31)`)&period;


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

[.small]#xref:BloombergLP/bdlt/Calendar/getNextBusinessDay-09.adoc[_» more&period;&period;&period;_]#

Load, into the specified `nextBusinessDay`, the date of the first 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&period;


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

[.small]#xref:BloombergLP/bdlt/Calendar/getNextBusinessDay-0a.adoc[_» more&period;&period;&period;_]#

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;


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

[.small]#xref:BloombergLP/bdlt/Calendar/getNextBusinessDay-0e.adoc[_» more&period;&period;&period;_]#


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