[#BloombergLP-bdlt-DayOfWeekUtil-add]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DayOfWeekUtil.adoc[DayOfWeekUtil]::add
:relfileprefix: ../../../
:mrdocs:

Return the `DayOfWeek&colon;&colon;Enum` value that is the specified (signed) `numDays` from the specified `dayOfWeek`&period; Note that `DayOfWeek&colon;&colon;Enum` is closed under this operation (in the expected manner)&period; For example, the following hold `true`&colon; &grave; DayOfWeek&colon;&colon;e&lowbar;MON &equals;&equals; DayOfWeekUtil&colon;&colon;add(DayOfWeek&colon;&colon;e&lowbar;SUN, 1)&semi; DayOfWeek&colon;&colon;e&lowbar;SAT &equals;&equals; DayOfWeekUtil&colon;&colon;add(DayOfWeek&colon;&colon;e&lowbar;SUN, &hyphen;1)&semi; DayOfWeek&colon;&colon;e&lowbar;SAT &equals;&equals; DayOfWeekUtil&colon;&colon;add(DayOfWeek&colon;&colon;e&lowbar;SUN, 6)&semi; DayOfWeek&colon;&colon;e&lowbar;MON &equals;&equals; DayOfWeekUtil&colon;&colon;add(DayOfWeek&colon;&colon;e&lowbar;SUN, &hyphen;6)&semi; DayOfWeek&colon;&colon;e&lowbar;SUN &equals;&equals; DayOfWeekUtil&colon;&colon;add(DayOfWeek&colon;&colon;e&lowbar;SUN, 7)&semi; DayOfWeek&colon;&colon;e&lowbar;SUN &equals;&equals; DayOfWeekUtil&colon;&colon;add(DayOfWeek&colon;&colon;e&lowbar;SUN, &hyphen;7)&semi; DayOfWeek&colon;&colon;e&lowbar;MON &equals;&equals; DayOfWeekUtil&colon;&colon;add(DayOfWeek&colon;&colon;e&lowbar;SUN, 8)&semi; DayOfWeek&colon;&colon;e&lowbar;SAT &equals;&equals; DayOfWeekUtil&colon;&colon;add(DayOfWeek&colon;&colon;e&lowbar;SUN, &hyphen;8)&semi; &grave;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
static
xref:BloombergLP/bdlt/DayOfWeek/Enum.adoc[DayOfWeek::Enum]
add(
    xref:BloombergLP/bdlt/DayOfWeek/Enum.adoc[DayOfWeek::Enum] dayOfWeek,
    int numDays);
----


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