Birthday傳回格式 : /Date(1418900173730)/
var parsedDate = new Date(parseInt(JData[i].Birthday.substr(6)));
var customBirthday = new Date(parsedDate);
customBirthday = customBirthday.getFullYear() + "/" + (customBirthday.getMonth() + 1) + "/" + customBirthday.getDate();
格式化後:2014/12/18
沒有留言:
張貼留言