title: How to convert LocalDateTime to `"yyyy-MM-dd'T'HH:mm:ss'Z'"` format
body: <p>I'm trying to parse the String in format <code>"yyyy-MM-dd'T'HH:mm:ss'Z'"</code> into <code>LocalDateTime</code> and if day is <code>sunday</code> or <code>saturday</code> i want to change date to <code>monday</code> and return in same format, i know i can add days by using <code>plusDays</code> </p>
  
  <pre><code>String str = "2018-09-22T12:30:10Z";
  DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss'Z'");
  LocalDateTime dateTime = LocalDateTime.parse(str, formatter);
  System.out.println(dateTime.plusDays(2));  //2018-09-24T12:30:10
  </code></pre>
  
  <p>But i want to return in format <code>2018-09-24T12:30:10Z</code></p>