title: java date format yyyy-mm-dd.hh.MM.ss.ms
body: <p>I'm receiving a date as a String like this :<code>2015-07-22.06.05.56.344</code>. I wrote a parsing code like this</p>
  
  <pre><code> SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd.hh.MM.ss.ms");
      try {
          Date date = sdf.parse("2015-07-22.06.05.56.344");
          System.out.println(date);
      } catch (ParseException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>And I got the output like this:</p>
  
  <pre><code>Fri May 22 06:03:44 IST 2015
  </code></pre>
  
  <p>Why is it reading it wrongly? Is it an issue with my code or java cannot recognize this date format?</p>