SQLite date/time `weekday -N` modifier form
When computing a date with a negative weekday offset, use the `weekday -N` modifier. It moves backward to the most recent previous date with that weekday; `N` must be an integer from -6 through 0.
SELECT date('<time-value>', 'weekday -<N>');