title: Converting string to Instant
body: <p>I am trying to covert datetime in string to instant using java 8 or utils package.</p>
  
  <p>For eg.</p>
  
  <pre><code>String requestTime = "04:30 PM, Sat 5/12/2018";
  </code></pre>
  
  <p>to</p>
  
  <pre><code>Instant reqInstant should result in 2018-05-12T20:30:00.000Z
  </code></pre>
  
  <p>reqString is in America/Toronto timezone.</p>
  
  <p>This is what I tried</p>
  
  <pre><code> String strReqDelTime = "04:30 PM, Sat 5/12/2018";
   Date date = new SimpleDateFormat("hh:mm a, EEE MM/dd/yyyy").parse(requestTime);
   Instant reqInstant = date.toInstant();
  </code></pre>
  
  <p>The above code results in <code>"2018-05-12T23:30:00Z"</code>.</p>
  
  <p>Any help is appreciated.</p>