title: Convert java.util.Date to String in yyyy-MM-dd format without creating a lot of objects
body: <p>I need to convert <code>java.util.Date</code> to <code>String</code> in <code>yyyy-MM-dd</code> format in a big amounts.</p>
  
  <p>I have just moved to java 8 and want to know how to do it properly.
  My solution with Java 7 was like:</p>
  
  <pre><code>DateTimeFormatter DATE_FORMATTER = DateTimeFormat.forPattern(DATE_FORMAT_PATTERN)
  
  DATE_FORMATTER.print(value.getTime())
  </code></pre>
  
  <p>It helped me not to create a lots of redundant objects.</p>
  
  <p>So now when I moved to java 8 I want rewrite it properly but:</p>
  
  <pre><code>LocalDate.fromDateFields(value).toString())
  </code></pre>
  
  <p>creates each time new <code>LocalDate</code> object and this gives a lot of work to GC.</p>
  
  <p>Are there any ways to solve my problem?
  Performance and thread-safety are very important.</p>
  
  <p>After some testing I have found that even with creating new objects construction with:</p>
  
  <pre><code>new SimpleDateFormat("yyyy-MM-dd")).format(value)) 
  </code></pre>
  
  <p>the fastest all over this topic.</p>