getLastDayOfWeek
The getLastDayOfWeek() function returns the Sunday corresponding to the week of the provided TheDate or SerializedTheDate.
Interactive example
Syntax
typescript
function getLastDayOfWeek<
GenericInput extends TheDate | SerializedTheDate
>(
input: GenericInput
): TheDateParameters
input:TheDateorSerializedTheDate.
Return value
A TheDate representing Sunday of the same week, normalized to 23:59:59.999 UTC.
