What am I?

When young I am sweet in the sun. When middle-aged I make you gay. When old I am valued more than ever.