关于读取Sql Server数据库时间前端处理问题

var time = this.CreateTime;
 this.CreateTime = new Date(time.replace("T", " ")).FormatD("yyyy-MM-dd");
//this.CreateTime 就是数据库中读取的时间,替换了T改为“ ”空格替换,
原文地址:https://www.cnblogs.com/ncellit/p/6813708.html