posted 17 years ago
It's possible to do this, though I would be careful not to let this new Date object escape to any other part of the program, because it's being used in an unintended way which will confuse other programmers if they don't know exactly how this object was constructed. (May still confuse them, in fact.) If anyone prints the value fo this date without the proper format and time zone, they'll be extremely mislead about what it means. So be careful.
Anyway, if you do this, it's sufficient to use the setTimeZone() method inherited from DateFormat. No need to use Calendar here.
"I'm not back." - Bill Harding, Twister