title: Unable converting String into Date in Java
body: <p>I want to convert String into Date in Java.
  I have written following code for that:</p>
  
  <pre><code>SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss.SSSSSS");       
  
  Date date = dateformat.parse("2015-07-16 23:59:59.0");
  
  dateformat.format(date);
  </code></pre>
  
  <p>After parsing I am getting following value for date : <code>Fri Jan 16 23:59:59 IST 2015</code></p>
  
  <p>I have tried many examples but didn't get proper solution.</p>
  
  <p>Thanks in advance.</p>