title: extracting a substring to use in simple date format
body: <p>I am reading log files and need to extract the date and year from certain lines in order to then use simple date format and find out the average time in between 2 actions. An example of what a line that I would need the date from looks like this.</p>
  
  <pre><code>(INFO ) [07 Feb 2013 08:04:39,161] -- ua, navigation, fault
  </code></pre>
  
  <p>I can't figure out if I should split the the line twice or use the substring function. Also I don't think I need to include that last number when converting to simple date format (the 161).</p>