catalog item 时间按照指定形式输出

function onLoad() {
   //Type appropriate comment here, and begin script below
     var d = new Date(),

        month = d.getMonth() + 1,

        day = '' + d.getDate(),

        year = d.getFullYear();
    var newDate=year+'/'+month+'/'+day;

 // alert(year+'/'+month+'/'+day);
    g_form.setValue('startdate',newDate);
    g_form.setValue('applydate',newDate);
}

 

 

posted on 2017-12-09 15:54  达摩克利斯  阅读(87)  评论(0编辑  收藏  举报

导航