<SCRIPT LANGUAGE="JavaScript">
var s1 = '{ZL:FormatDate({ZL.Label id="楼盘更新时间" NodeID="{Field="NodeID"/}" /},yyyy-MM-dd)/}';
s1 = new Date(s1.replace(/-/g, "/"));
s2 = new Date();//当前日期:2017-04-24
var days = s2.getTime() - s1.getTime();
var time = parseInt(days / (1000 * 60 * 60 * 24));
if (time>30)
{
document.write('<br /><span class="small secondary">(该楼盘已经超过'+time+'天没有更新,可能现有信息无效,请以售楼处实际信息为准)</span>');
}
</SCRIPT>