[Freemarker] Format日期类型时要注意null问题

要先做空值判断,如

                     <#if dateRangeStart??>
                        ${dateRangeStart?string("MM/dd/yyyy")}
                      </#if>

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.