This function takes a date and returns the date of the first day of the corresponding week (with monday considered the first day and sunday the last day).