高级PDF模板Netsuite中两个日期之间的天数

时间:2018-10-08 05:16:33

标签: netsuite

任何人都可以帮助获得Netsuite中高级pdf模板中两个日期之间的差异吗?

1 个答案:

答案 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) />