var auditTime = new Date(parseInt(result.Data.AuditTime.substr(6)));
var birthdayMilliseconds = parseInt(result.Data.AuditTime.replace(/\D/igm, "")); //实例化一个新的日期格式,使用1970 年 1 月 1 日至今的毫秒数为参数 var birthday = new Date(birthdayMilliseconds); alert(birthday.toLocaleDateString());