title: parsing date using simpleDateFormat java
body: <p>I want to parse an String to Date but the date obtained is incorrect. my code is like :</p>
  <pre><code>SimpleDateFormat df = new SimpleDateFormat(&quot;dd-MMM-yy hh.mm.ss.S a&quot;);
  date1 = df.parse(&quot;17-DEC-19 05.40.39.364000000 PM&quot;);
  </code></pre>
  <p>but date1 is: Sat Dec 21 22:47:19 IRST 2019</p>
  <p>I need to date: * Dec 17 17:40:39 IRST 2019</p>