Time/Date to GMT keeping in mind DST

I have a servlet that gets the system Time/Date and needs to convert it to GMT(Greenwich Mean Time), it also needs to convert for DST(Daylight Savings Time) in the code. Any help would be greatly appreciated.
[222 byte] By [lars68] at [2007-9-26 13:42:07]
# 1
Use java.util.SimpleDateFormat and create TimeZone as needed.
jschell at 2007-7-2 14:27:47 > top of Java-index,Archived Forums,Portability & Platform Independence [Archive]...
# 2
I am not sure what you mean. Could you elaborate? I am not trying to create a new TimeZone, I just want to adjust the current time so that it is displayed as coming from GMT and also takes into accound DST.Thanx
lars68 at 2007-7-2 14:27:47 > top of Java-index,Archived Forums,Portability & Platform Independence [Archive]...
# 3
Presumably the current time zone of the client is not GMT/UMT.So you need to create a TimeZone for GMT/UMT.Then you use that when creating SimpleDateFormat. Then the format method of that instance will produce a string with the correct (relative) time value.
jschell at 2007-7-2 14:27:47 > top of Java-index,Archived Forums,Portability & Platform Independence [Archive]...