//时间格式转换
function timeFormat(time) {
var data = new Date(time);
var year = data.getFullYear(); //获取年
var month = data.getMonth() + 1; //获取月
var day = data.getDate(); //获取日
return year + "-" + month + "-" + day;
}
例子:SubmiteDate = timeFormat(articleresults[i].Created);