title: Java Server and Client Time
body: <p>Please can any body help me I have been faced time related problem regarding client and server time display issue since 1 week.</p>
  
  <p>Description:  Actually server is located in Germany when client (example : india) try to send any message to his contacts it will show the message sending time is server time (means Germany time).But I should say local specific time.I user send any then I show message sending time like this.</p>
  
  <pre><code>public static String retrieveFullDateFromDateinAMPM ( Date date ) {
      SimpleDateFormat sdf =
          new SimpleDateFormat("dd/MM/yy hh:mm a", Locale.getDefault());
      return sdf.format(date);
  }  
  </code></pre>
  
  <p>Here I send date value to my helper method <code>retrieveFullDateFromDateinAMPM(Date date)</code>   and I will return the message sending time like this : <code>return sdf.format(date);</code> to the web page. But it shows server located time but I should need to show locale specific time. Please help me.  Advanced Thanks.</p>