title: JAVA : Get the time of different timezone
body: <p>I'm currently a developing a sync module for one of my applications. I'm syncing the records between local and server based on LastUpdated time, which is nothing but a timestamp. The server is of Singapore, so how can I set the timezone to Singapore in my Android application?</p>
  
  <p>I have tried,</p>
  
  <pre><code>SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", Locale.ENGLISH);
  sdf.setTimeZone(TimeZone.getTimeZone("VST") );
  </code></pre>
  
  <p>and,</p>
  
  <pre><code>Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("Asia/Singapore"));
  System.out.println(calendar.get(Calendar.HOUR_OF_DAY));
  </code></pre>
  
  <p>Still no luck.</p>
  
  <p>Or is there any way I can set the common timezone for both local and server? Server side language is <code>ASP.Net</code> </p>