Moqui之时间转换

<script><![CDATA[
    if (fromDate == null && thruDate == null && year && month) {
        fromCal = ec.l10n.parseDateTime("${year}-${month}-01 00:00:00", "yyyy-MM-dd HH:mm:ss")
        thruCal = fromCal.clone()
        thruCal.add(Calendar.MONTH, 1)
        thruCal.add(Calendar.SECOND, -1)

        fromDate = new Timestamp(fromCal.getTimeInMillis())
        thruDate = new Timestamp(thruCal.getTimeInMillis())
    }
]]></script>

 

 
posted @ 2016-05-09 10:43  霓裳梦竹  阅读(288)  评论(0)    收藏  举报