title: I am trying to get the DateTimeFormatter for a date string in joda time
body: <p>I need the format string for a date that is formatted like this: <code>2017-06-14T00:00:00Z</code>.</p>
  
  <p>Currently, I have: </p>
  
  <pre><code>DateTimeFormatter DT_SCHEDULE_FORMATTER_START_TIME = DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ssZ");
  </code></pre>
  
  <p>If I parse a the string <code>2017-06-14T00:00:00Z</code> with this, it gives me the right time in UTC.  </p>
  
  <p>But when I take a <code>DateTime</code> object and try to do: </p>
  
  <pre><code>String strNow = new DateTime().toString(DT_SCHEDULE_FORMATTER_START_TIME);
  </code></pre>
  
  <p>I get something like <code>2017-06-14T00:00:00 -07:00</code></p>
  
  <p>I've looked in the documentation and can't seem to find the right formatting string.</p>