You use highly accurate techniques to learn the time when lots and lots of different volcanic rocks solidified from melted rock. You do this for many different rocks across the continents, and many different rocks across the sea floor. You will find that (note that "older" rocks are those that solidified more years ago, and "younger" rocks are those that solidified fewer years ago.):