I stumbled about a problem that the build-in is_date does not support Java 8 time objects like LocalDate.
Let me try to show you my usecase
<#if myDate?is_date>true<#else>false</#if>
Map<String, Object> placeholders = new HashMap<>();
placerholders.put("mydate", LocalDate.now());
FreeMarkerTemplateUtils.processTemplateIntoString(template, placeholders);
When I replace LocalDate.now() with new Date() it is working. Is there any possibility to check with your library if a LocalDate is a date?
I stumbled about a problem that the build-in
is_datedoes not support Java 8 time objects like LocalDate.Let me try to show you my usecase
When I replace
LocalDate.now()withnew Date()it is working. Is there any possibility to check with your library if a LocalDate is a date?