Unopened ricotta will last until the use by date on the package, but once it’s opened, ricotta should be used within 2 weeks.