title: parse String to 'yyyy-mm-ddThh:mm:ss.SSSZ' ISODate java
body: <p>How to convert String to <strong>ISODate</strong> format using <strong>SimpleDateFormat</strong>, which means that i want to finally get Date in java.util.Date format.</p>
  
  <p>My string will look like <strong>2017-02-17T09:28:03.000Z</strong>, i want to convert it to date formt. I can do this in Joda date format, but since i am using mongoDB, it does not accept joda format.</p>
  
  <pre><code>   String startDateString1 =  "2017-02-17T04:23:17.452Z";      
      DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); 
      Date  startDate = df.parse(startDateString1);
      String newDateString = df.format(startDate);
  </code></pre>
  
  <p>above code is not working.</p>