title: How to add current timestamp to Date object in Java?
body: <p>I need to pass in a <code>Date</code> object into a service which my API is calling. I have the info on the day, month, and year for the <code>Date</code> but also need a timestamp. The service is expecting it in this format: </p>
  
  <pre><code>&lt;date&gt;2015-04-01T00:00:00-05:00&lt;/date&gt;
  </code></pre>
  
  <p>How can I add something to the Date to get this format?</p>