posted 18 years ago
I need to convert a UTC date to this format "MM/dd/yyyy HH:mm:ss". I have written the following algorithm to convert the date to a GregorianCalendar. I can then use the SimpleDateFormat to format the date as above. However, the time of the date is eight hours past when it should be. For example, "127317817092943762" converts to "06/15/2004 17:1:49" when it should convert to "06/15/2002 09:01". I added a line to set the TimeZone to Central Time Zone since we are in the midwest; however, this didn't impact the result. Any ideas?
[ June 21, 2004: Message edited by: verduka fox ]