title: Freemarker check for date/time
body: <p>Below is the two lines of code that throws error:</p>
  
  <pre><code>&lt;#assign test2="20:56:20"?time("HH:mm:ss")&gt;
  
  ${test2?date}
  </code></pre>
  
  <p>The second line ends up with error:</p>
  
  <pre><code>freemarker.template.TemplateException: Cannot convert TIME into DATE
  </code></pre>
  
  <p>I know this is expected. But how can I check, if a date variable has got the 'date' value before displaying it on screen? For ex: In above example, i would like to check if '<code>test2</code>' contains a <code>date</code> part before diplaying it on screen.</p>