title: Converting a date string from a timezone to different time zone
body: <p>I have a date that I get from a server formatted in EST like this</p>
  
  <p><code>05/07/2012 16:55:55</code> goes month/day/year then time</p>
  
  <p>if the phone is not in EST how can I convert it to the timezone the phone is in?</p>
  
  <p>it would be not problem if I got the time in milliseconds but I dont</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>ok now the time is not correct when formatting</p>
  
  <pre><code>                String sTOC = oNewSTMsg.getAttribute("TOC").toString();
                  String timezoneID = TimeZone.getDefault().getID();
                  DateFormat format = new SimpleDateFormat("MM/dd/yy HH:mm:ss");
                  format.setTimeZone(TimeZone.getTimeZone("EST"));
                  String newtimezoneID = TimeZone.getDefault().getID();
                  Date timestamp = null;
                  try{
                      timestamp = format.parse(sTOC);
                      format.setTimeZone(TimeZone.getDefault());
                      timezoneID = format.format(timestamp);
                  }catch(ParseException e){
  
                  }
  </code></pre>
  
  <p>I convert it to "EST" then format that time to the default <code>TimeZone</code> but the time is always off by an hour, not sure why?</p>