title: convert a string of time to 24 hour format
body: <p>I have a <code>string</code> holding a start time and an end time in this format <code>8:30AM - 9:30PM</code> I want to be able to strip out the <code>AM -</code> and the <code>PM</code> and convert all the times to 24 hour format so <code>9:30PM</code> would really be <code>21:30</code> and also have both the times stored in 2 different variables, I know how to strip the string into <code>substrings</code> but Im not sure about the conversion, this is what I have so far. the time variable starts out holding <code>8:30AM - 9:30PM</code>.</p>
  
  <pre><code>String time = strLine.substring(85, 110).trim();
  //time is "8:30AM - 9:30PM" 
  
  String startTime;               
  startTime = time.substring(0, 7).trim();
  //startTime is "8:30AM"
  
  String endTime;
  endTime = time.substring(9).trim();
  //endTime "9:30AM"
  </code></pre>