Skip to content

Feature request to support is_date for LocalDate #61

@faltfe

Description

@faltfe

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions