Young, Middle-Aged, Old

When young, I am sweet in the sun. When middle-aged, I make you happy. When old, I am valued more than ever. What am I?