title: Formatting LocalDateTime in Thymeleaf
body: <p>I have following code</p>
  <pre class="lang-html prettyprint-override"><code>&lt;span th:text=&quot;${#temporals.format(station.getDepartureDateTime(),'yyyy-MM-dd')}&quot;&gt;&lt;/span&gt;
  </code></pre>
  <p>I have added dependency in pom</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
     &lt;groupId&gt;org.thymeleaf.extras&lt;/groupId&gt;
     &lt;artifactId&gt;thymeleaf-extras-java8time&lt;/artifactId&gt;
     &lt;version&gt;3.0.4.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>It must show <code>2020-12-12</code> but it show full date like <code>2020-12-12T12:45:35.375</code> (it was the same without any formatting).</p>
  <p>No errors appeared.</p>
  <p>How can I format this LocalDateTime?</p>