[#BloombergLP-bdlt-ProlepticDateImpUtil-ydToDayOfWeek]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/ProlepticDateImpUtil.adoc[ProlepticDateImpUtil]::ydToDayOfWeek
:relfileprefix: ../../../
:mrdocs:

Return, as an integer (with `1 &equals; SUN`, `2 &equals; MON`, &period;&period;&period;, `7 &equals; SAT`), the day (of the week) of the date value indicated by the specified `year` and `dayOfYear`&period; The behavior is undefined unless `isValidYearDay(year, dayOfYear)` returns `true`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
ydToDayOfWeek(
    int year,
    int dayOfYear);
----


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