Message Date --> EST?!

I have a message with a date of:

Date: Thu, 13 Apr 2006 13:50:13 -0400 (EDT)

I to the following:

-

Date dd = mailPacket.getSentDate();

SimpleDateFormat formatter =new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");

String formattedDate = formatter.format(dd);

--

This gives me:

2006-04-13 17:50:13

Looks like it added the 4 hours from the EDT. I want to have the time (no matter where it is from) converted to EST all the time. SO..this should have remained 13:50:13.

Ideas?

Thanks,

Michael

[627 byte] By [heyblueza] at [2007-10-2 17:36:20]
# 1
The methods that you called there use your timezone, whatever it is, as the default. If you want to use "EST" as the basis for time formatting then set that time zone on the formatter.
DrClapa at 2007-7-13 18:53:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Hello,Interestingly I was just messing with that on my laptop and the times were coming out correctly.Maybe the server I was originally running it on is not EST. Sorry for the silly question.THANKS!
heyblueza at 2007-7-13 18:53:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...