Final answer:
Coffee beans should be used within 2 weeks of opening, while espresso beans can last up to 3 months.
Step-by-step explanation:
Coffee beans and espresso beans can be dated for different lengths of time once they are opened.
For coffee beans, it is generally recommended to use them within 2 weeks of opening. This is because coffee beans start to lose their freshness and flavor as soon as they are exposed to air. Storing them in an airtight container can help extend their shelf life.
As for espresso beans, they can be dated for slightly longer, around 3 months. However, it is still best to use them within the first few weeks to enjoy the best quality espresso.