getLastDayOfWeek
The getLastDayOfWeek() function returns the Sunday corresponding to the week of the provided TheDate.
Interactive example
Syntax
typescript
function getLastDayOfWeek(
input: TheDate
): TheDateParameters
input: TargetTheDate.
Return value
A TheDate representing Sunday of the same week.
