[#BloombergLP-bblb-ScheduleGenerationUtil-generateFromBusinessDayOfMonth-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bblb.adoc[bblb]::xref:BloombergLP/bblb/ScheduleGenerationUtil.adoc[ScheduleGenerationUtil]::generateFromBusinessDayOfMonth :relfileprefix: ../../../ :mrdocs: Load business‐day‐of‐month schedule dates into the specified `schedule`. == Synopsis Declared in `<bblb_schedulegenerationutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void generateFromBusinessDayOfMonth( xref:bsl/vector-00d.adoc[bsl::vector<bdlt::Date>]* schedule, xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& earliest, xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& latest, int exampleYear, int exampleMonth, int intervalInMonths, xref:BloombergLP/bdlt/Calendar.adoc[bdlt::Calendar] const& calendar, int targetBusinessDayOfMonth); ---- == Description Load, into the specified `schedule`, the chronologically increasing sequence of unique dates that are on the specified `targetBusinessDayOfMonth` (or the highest count possible in the resulting month), integral multiples of the specified `intervalInMonths` away from the specified `exampleYear` and `exampleMonth`, and within the specified closed‐interval `[earliest, latest]`. Business days, as per the specified `calendar`, are counted, if `targetBusinessDayOfMonth` is positive, from and including the chronologically earliest business day to chronologically later business days, and if `targetBusinessDayOfMonth` is negative, from and including the chronologically latest business day to chronologically earlier business days. If any of the months required for the schedule do not have a business day, return an empty `schedule`. The behavior is undefined unless `earliest <= latest`, `1 <= exampleYear <= 9999`, `1 <= exampleMonth <= 12`, `1 <= intervalInMonths`, and `1 <= abs(targetBusinessDayOfMonth) <= 31`. [.small]#Created with https://www.mrdocs.com[MrDocs]#