1 Reply Latest reply: Apr 15, 2008 1:51 AM by 791266 RSS

    Finding a date in another timezone

    807591
      Hi everyone.
      I'm struggling with this one and hope you can help.
      Basically what i tried to do is this:
      Calendar cal = GregorianCalendar.getInstance(TimeZone.getTimeZone("Asia/Kuala_Lumpur"));
      cal.getTime();

      I was hoping this would give me a date object with the date and time in Kuala Lumpur, but no. I have tried several different solutions, but it just doesn't work and i'm getting frustrated.
      How can i get the time in Kuala Lumpur and other plaes around the world. Important that the DST also works.