[#BloombergLP-bdlt-ProlepticDateImpUtil-ydToDayOfWeek] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/ProlepticDateImpUtil.adoc[ProlepticDateImpUtil]::ydToDayOfWeek :relfileprefix: ../../../ :mrdocs: Return the day of the week for the specified year and day‐of‐year. == Synopsis Declared in `<bdlt_prolepticdateimputil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int ydToDayOfWeek( int year, int dayOfYear); ---- == Description Return, as an integer (with `1 = SUN`, `2 = MON`, ..., `7 = SAT`), the day (of the week) of the date value indicated by the specified `year` and `dayOfYear`. The behavior is undefined unless `isValidYearDay(year, dayOfYear)` returns `true`. == Return Value day of week in `[1 .. 7]` (`1 = SUN` .. `7 = SAT`) == Parameters [cols="1,4"] |=== | Name| Description | *year* | calendar year | *dayOfYear* | day of year |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#