title: Spring with Thymeleaf binding date in html form
body: <p>I have a simple snippet of form like:</p>
  
  <pre><code>&lt;form th:action="@{'/save'}" th:object="${account}" method="post"&gt;
      &lt;div class="form-group"&gt;
          &lt;label for="expirationDate"&gt;Expiration date&lt;/label&gt;
          &lt;input type="datetime-local" class="form-control" id="expirationDate"
                 placeholder="Expiration date" th:field="*{expirationTime}"/&gt;
      &lt;/div&gt;
      &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I'm passing there a filled object <code>account</code> and <code>expirationTime</code> is a <code>LocalDateTime</code> field. The problem is that the <code>expirationTime</code> is not bind with the value passed to the form (object which is passed is 100% correct). 
  Any idea why?</p>