[#BloombergLP-bblb-ScheduleGenerationUtil-generateFromDayOfMonth-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bblb.adoc[bblb]::xref:BloombergLP/bblb/ScheduleGenerationUtil.adoc[ScheduleGenerationUtil]::generateFromDayOfMonth
:relfileprefix: ../../../
:mrdocs:

Load, into the specified `schedule`, the chronologically increasing sequence of unique dates that are on the specified `targetDayOfMonth` (or the last day of the month if `targetDayOfMonth` would be past the end of the month), integral multiples of the specified `intervalInMonths` away from the specified `exampleYear` and `exampleMonth`, and within the specified closed&hyphen;interval `&lsqb;earliest, latest&rsqb;`&period; Optionally specify `targetDayOfFeb` to replace `targetDayOfMonth` whenever the month of a `schedule` entry is February&period; The behavior is undefined unless `earliest &lt;&equals; latest`, `1 &lt;&equals; exampleYear &lt;&equals; 9999`, `1 &lt;&equals; exampleMonth &lt;&equals; 12`, `1 &lt;&equals; intervalInMonths`, `1 &lt;&equals; targetDayOfMonth &lt;&equals; 31`, and `0 &lt;&equals; targetDayOfFeb &lt;&equals; 29`&period;

== Synopsis

Declared in `&lt;bblb&lowbar;schedulegenerationutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
generateFromDayOfMonth(
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bdlt::Date&gt;]* 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,
    int targetDayOfMonth,
    int targetDayOfFeb = 0);
----


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