title: Java-Adding timezone to date when date is grabbed from datepicker
body: <p>I have a jsp page that takes the value from a jquery datapicker and passes it into a search.  The user of the site has the opportunity to change their timezone to fit where they are located in the world.  I want to take the value searched which is based off the browsers time and format it and show it on screen with the user’s timezone.</p>
  
  <p>The column is expireDate and I use datatables to display the results.  </p>
  
  <pre><code>{
      "mData":"expireDate",
      "mRender":function(source,type,full){
      if(-1==source)
      return "";
      var toDate = new Date(source);
      var stringDate = toDate.toString(dateTableFormater);
      return stringDate;
  </code></pre>
  
  <p>I get the value and pass in my own custom formatting, the formatting is based on where the person lives. Each format is different depending on where they live and prevents me from using the simpledateFormat.setTimezoneOffset();</p>
  
  <pre><code>$("#expireFrom").datepicker($.datepicker.regional[plannerLang]);
      $("#expireFrom").datepicker( "option", "dateFormat",dateFormater);
      $("#expireTo").datepicker($.datepicker.regional[plannerLang]);
      $("#expireTo").datepicker( "option", "dateFormat",dateFormater);
  </code></pre>
  
  <p>I have a dto set up so it gets the users Timezone, I just cant figure out how to implemet that so when the time is sent back to the jsp the timezone has been included in the time.
  How do you add/subtract the timezone difference from the date that the browser has gotten?</p>