[#BloombergLP-bdlt-DateUtil-previousDayOfWeek]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DateUtil.adoc[DateUtil]::previousDayOfWeek
:relfileprefix: ../../../
:mrdocs:

Return the previous occurrence of `dayOfWeek` before `date`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlt/Date.adoc[Date]
previousDayOfWeek(
    xref:BloombergLP/bdlt/DayOfWeek/Enum.adoc[DayOfWeek::Enum] dayOfWeek,
    xref:BloombergLP/bdlt/Date.adoc[Date] const& date);
----

== Description

Return the last date _before_ the specified `date` that falls on the specified `dayOfWeek`&period; The behavior is undefined unless the resulting date is no earlier than 1&sol;1&sol;1&period;

== Return Value

previous matching date

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dayOfWeek*
| desired day of week
| *date*
| exclusive upper bound date
|===


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