title: Convert java.util.Date to Timestamp with Time Zone for PostgreSQL
body: <p>I am trying to insert a date into my PostgreSQL db. Here is how I parse the date in my java application:</p>
  
  <pre><code>SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
  Date parsedTimeStamp = dateFormat.parse(dateString);
  </code></pre>
  
  <p>And in my PostgreSQL db. I have it as <code>Timestamp with Time Zone</code>. What is the ideal way to process and insert it?</p>
  
  <p>Example of what the db expects <code>2017-09-09 07:15:33.451061+00</code>.</p>