Return the nth business day following initialDate.

Synopsis

Declared in <bdlt_calendar.h>

Date
getNextBusinessDay(
    Date const& initialDate,
    int nth) const;

Description

Return the date of the specified nth business day following the specified initialDate. For dates outside of the range of this calendar, only weekend days are considered non‐business days. The behavior is undefined unless initialDate is within the valid range and 1 <= 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)).

Return Value

the nth business day following initialDate

Parameters

Name

Description

initialDate

date after which to count business days

nth

one‐based count of business days to advance

Created with MrDocs