If you're asking how to translate "I had a great time" into Portuguese, here are a few options:
Formal:
* Eu me diverti muito. (Literally: I had a lot of fun.)
* Foi ótimo. (It was great.)
Informal:
* Foi demais! (It was awesome!)
* Amei! (I loved it!)
* Foi muito legal! (It was really cool!)
* Me diverti pra valer! (I had a blast!)
The best translation will depend on the context and the tone you want to convey.