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