Fresh, uncooked cranberries can be kept at room temperature for up to two weeks. If you are going to purchase your cranberries earlier than that, I would recommend freezing them in the original bag until you make the cranberry sauce. Then, you can just follow the recipe directly using the frozen cranberries — no thawing necessary!