title: how to convert UTC time to some other time zone ("CST","IST")
body: <p>In my Android application server will return some <code>UTC</code> date in following format(<code>yyyy-MM-dd HH:mm:ss</code>) 24hours and I need to convert those time into user's TimeZone for example <code>CST</code>, <code>IST</code>.</p>
  
  <p>I did the following code but I do know is it correct or not, please assist me to do the time zone conversion in right way.</p>
  
  <p><strong>I get UTC date as json string and converting into user's time zone format and showing Android side</strong></p>
  
  <pre><code>private static Date utcDate;
  private static DateFormat expireFormat = new SimpleDateFormat(
          "yyyy-MM-dd HH:mm:ss");
  
          try {
              expireFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
              utcDate = expireFormat.parse("2014-04-01 10:32:00");
              System.out.println(TimeZone.getDefault().getID());
              expireFormat.setTimeZone(TimeZone.getTimeZone(TimeZone.getDefault().getID()));
              System.out.println(expireFormat.format(utcDate));
          } catch (ParseException e) {
              e.printStackTrace();
          }
  
      output of the code:
      Asia/Calcutta
      2014-04-01 16:02:00
  </code></pre>