title: Thymeleaf. How to compare if the date is from future, or past?
body: <p>I want to check if the date which is in Employee.dateOfTermination is after date "now". Unfortunetely, after running following code, I get nothing on data:</p>
  
  <pre><code>&lt;td&gt; &lt;div th:switch="${employee.dateOfTermination}"&gt; 
                              &lt;span th:case="'&amp;lt; now'"&gt;CASE 1&lt;/span&gt;
                              &lt;span th:case="'&amp;gt; now'" th:text="${#dates.format(employee.dateOfTermination, 'dd-MM-yyyy')}"&gt;CASE 2&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;
  </code></pre>
  
  <p>Here comes the problem, the syntax of thymeleaf does seem unappliable and disgusting for me. I tried with th:if, and parsing a int.</p>