1. 程式人生 > >關於讀取Sql Server數據庫時間前端處理問題

關於讀取Sql Server數據庫時間前端處理問題

pre lac span creat server eat rep code div

var time = this.CreateTime;
 this.CreateTime = new Date(time.replace("T", " ")).FormatD("yyyy-MM-dd");
//this.CreateTime 就是數據庫中讀取的時間,替換了T改為“ ”空格替換,

關於讀取Sql Server數據庫時間前端處理問題