Converting date to GMT

Hi,

I want to write a service which takes idate , iformat , iTimeZone and outputs the date depending up on the target Format and TimeZone provided. Code would be helpful.

Thanks