How do astronomers know the age of the planets and stars?

Measuring the ages of planets and stars helps scientists understand when they formed and how they change – and, in the case of planets, if life has had time to have evolved on them.

How do astronomers know the age of the planets and stars?
Measuring the ages of planets and stars helps scientists understand when they formed and how they change – and, in the case of planets, if life has had time to have evolved on them.