[Freemarker] Format日期类型时要注意null问题 Leave a Comment / Java / May 11, 2010 May 11, 2010 要先做空值判断,如 <#if dateRangeStart??> ${dateRangeStart?string("MM/dd/yyyy")} </#if>