title: Annotation @DateTimeFormat not working with Spring boot and Thymeleaf
body: <p>I am using Springboot, Java, and Thymeleaf.</p>
  
  <pre><code>public class DirectBind {
  
      @Column(columnDefinition = "date")
      @DateTimeFormat(pattern = "MM/dd/yyyy")
      private LocalDate policyTermDateStart;
  
      @Column(columnDefinition = "date")
      @DateTimeFormat(pattern = "MM/dd/yyyy")
   ...
  }
  </code></pre>
  
  
  
  <p>My date is coming out yyyy-mm-dd. Do you know how I can change this/where to implement the code so it changes. Does it go in my controller? This is my code for when I send the form that's grabbing the user input for date</p>
  
  <pre><code>@RequestMapping(value = "/send")
  public String send(Model model, @ModelAttribute(value = "directBind") DirectBind directBind) {
      List&lt;String&gt; businessAgencyList = directBind.getBusinessAgencyList();
      List&lt;String&gt; billTypeOptions = directBind.getBillTypeOptions();
      Mail mail = new Mail();
      mail.setFrom("no-reply@hgitservices.com");
      mail.setTo(new String[]{"stacief@hgitservices.com"});
      mail.setSubject("Oli Affiliate - AMS360 &amp; PMA Data Checklist");
      Map&lt;String, Object&gt; mailModel = new HashMap&lt;&gt;();
      mail.setModel(mailModel);
      try {
          emailService.sendSimpleMessage(mail, directBind);
      } catch (Exception e) {
          e.printStackTrace();
          return ("redirect:/?sentMessageFail");
      }
      return ("redirect:/?sentMessage");
  }
  
  @RequestMapping(value = "/email")
  public String email() {
      return "emailMessage";
  }
  </code></pre>