title: problem converting calendar to java.util.Date
body: <p>I need to create a java.util.Date object with an Australian timezone. this object is required for tag libraries used in downstream components (so I'm stuck with Date).</p>
  
  <p>Here's what I have attempted:</p>
  
  <pre><code>TimeZone timeZone = TimeZone.getTimeZone("Australia/Sydney");
  GregorianCalendar defaultDate = new GregorianCalendar(timeZone);
  Date date = defaultDate.getTime();
  </code></pre>
  
  <p>However, "date" always returns the current local time (in my case, ET). What am I doing wrong here? Is it even possible to set a Date object with a different timezone?</p>
  
  <p>Update:</p>
  
  <p>Thanks for the responses! This works if I want to output the formatted date as a string, but not if I want to return a date object. Ex:</p>
  
  <pre><code>Date d = new Date();
  DateFormat df = new SimpleDateFormat();
  df.setTimeZone(TimeZone.getTimeZone("Australia/Sydney"));
  
  String formattedDate = df.format(d);   // returns Sydney date/time
  Date myDate = df.parse(formattedDate); // returns local time(ET)
  </code></pre>
  
  <p>I think I'm going to end up reworking our date taglib.</p>