title: How convert localDateTime to format `dd/MM/yyyy`?
body: <p>I have some problem while converting a <code>localDateTime</code> to the format <code>dd/MM/yyyy</code></p>
  
  <p>Here is the method I am using:</p>
  
  <pre><code>public static Date localDateTimeToDateWithSlash(LocalDateTime localDateTime) {
      if(localDateTime == null)
          return null;
      DateFormat format = new SimpleDateFormat("dd/MM/yyyy");
      try {
          return format.parse(localDateTime.format(slashDateFormater));
      }
      catch (Exception e) {
          return null;
      }
  }
  </code></pre>
  
  <p>it returns a date, but in the format <code>2017-12-01T01:00</code>But I need it in the format <code>dd/MM/yyyy</code>.</p>