title: Convert between timezone in Java
body: <p>I am reading time from the DB in format <code>MM/dd/yyyy hh:mm a z</code> now I want to display this time in user local timezone. So my question are:</p>
  
  <ol>
  <li>Where should it be done client side or server side?</li>
  <li>Is there build in lib for this purpose?</li>
  </ol>
  
  <p><strong>UPDATE</strong>
  So I decide to do conversion in server, therefore I have method definition as following with parameter date from server and time zone offset of the client time.  </p>
  
  <pre><code>public String convertToLocalDateTime(Date dateFromDB, Integer offSetMins) {
    //1. dbDateInUTC = Convert dateFromDB to UTC
    //2. return offSetMins + dbDateInUTC;
  }
  </code></pre>
  
  <p>I am not sure how I can do step (1). Any suggestion?</p>