[#BloombergLP-bdlt-PosixDateImpUtil-ymdToDayOfWeek] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/PosixDateImpUtil.adoc[PosixDateImpUtil]::ymdToDayOfWeek :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`, `month`, and `day`. The behavior is undefined unless `true == isValidYearMonthDay(year, month, day)`. == Synopsis Declared in `<bdlt_posixdateimputil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int ymdToDayOfWeek( int year, int month, int day); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#