The shelf life of yogurt depends on many factors, including production date, storage conditions and additives. Generally, the shelf life of unopened yogurt is about 2-3 weeks when it is stored in the refrigerator. After opening, the shelf life of yogurt will be shortened to 5-7 days. If the taste, smell or texture of yogurt changes, or there are abnormal conditions such as mildew, odor or foreign matter, it should be discarded immediately. In order to extend the shelf life of yogurt, you can choose to add preservatives or use high-temperature sterilization in the production process. However, these methods may affect the taste and nutritional value of yogurt, so they should be used carefully.