title: DynamoDB Format String Date in Java
body: <p>DynamoDB API documentation tells that a supported date should be a String like:</p>
  
  <pre><code>Date (as ISO8601 millisecond-precision string, shifted to UTC)
  </code></pre>
  
  <p>How do I get this current Date format in Java? </p>
  
  <p>I saw similar things, but they are not quite exactly:</p>
  
  <pre><code>DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mmZ");
  </code></pre>
  
  <p>Is millisecond precision really necessary?</p>
  
  <p>Hopefully I won't need to add Joda for this.</p>
  
  <p>Need a time stamp, to add it to my <em>Range Primary Key</em>.</p>
  
  <p>Need this to put/insert into the Db.</p>