title: How to convert HH:mm:ss.SSS to milliseconds?
body: <p>I have a String <code>00:01:30.500</code> which is equivalent to <code>90500</code> milliseconds. I tried using <code>SimpleDateFormat</code> which give milliseconds including current date. I just need that String representation to milliseconds. Do I have to write custom method, which will split and calculate milliseconds? or Is there any other way to do this? Thanks.</p>
  
  <p>I have tried as follows:</p>
  
  <pre><code>        String startAfter = "00:01:30.555";
          SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss.SSS");
          Date date = dateFormat.parse(startAfter);
          System.out.println(date.getTime());
  </code></pre>