{{# function Truncate(stringfirst,Num) { if (stringfirst!=null&&stringfirst!=""&&stringfirst!="undefined") { if (stringfirst.length <= Num) { return stringfirst; } else { return stringfirst.substring(0, Num); } } else { } } function getDate(dateString){ var dateTime = ""; if (dateString != null) { var num=parseInt(dateString); var dateObj = new Date(num); var strmonth = dateObj.getMonth() + 1; var strdate = dateObj.getDate(); if( strmonth <= 9 && strmonth >=1 ){ strmonth = '0' + strmonth; } if( strdate <= 9 && strdate >=1 ){ strdate = '0' + strdate; } dateTime = dateObj.getFullYear() + "-" + strmonth + "-" + strdate; return dateTime; }else{ return ""; } } }} {{# $.each(d.list,function(index,item){ }}