The simpliest way of knowing is when the layers are horizontal, the stratigraphy principle of superposition applies so the top layer is the youngest the bottom layer is the oldest.
In a folded anticlyne formation the layer in the center of the anticlyne is the oldest.