How long does leche flan takes before it get spoiled?

Leche flan can typically last for around 2-3 days when stored in the refrigerator. It is important to store it in an airtight container to prevent it from absorbing other flavors or drying out. Additionally, refrigerating it will slow down the growth of bacteria, helping to keep it fresh for longer. If you want to keep it for longer, you can consider freezing it in smaller portions and thawing it when you're ready to consume it. Properly-frozen leche flan can last for up to 2 months in the freezer. When thawing, it's best to leave it in the refrigerator overnight or until completely thawed before consuming.