Find a specific day of week based on a date
<p>I would like to be able to find the date which "Sunday" falls on for a given date, formatted as YYYY-MM-DD.</p>

<p>... How would this be achieved in PHP?</p>
