Dovrei convertire la data nel farmato

gg-mm-aaaa in aaaa-mm-gg

e all'inverso .. grazie