任何人都可以帮助获得Netsuite中高级pdf模板中两个日期之间的差异吗?
答案 0 :(得分:1)
<!-- Function -->
<!-- Calculate Days from a Specific Date --><#function dateDiff date days>
<#assign timeInMillisecond = (1000 * 60 * 60 * 24 * days) />
<#assign aDate = date?long + timeInMillisecond?long /><#return aDate?number_to_date>undefined</#function>undefined<!-- Date
Vars -->undefined<#assign date_today = .now />undefined<#assign date_ten_days_from_today = dateDiff(date_today, 10) />