似乎从UTC日期开始最简单的方法是创建一个新Date对象并使用这些setUTC…方法将其设置为您想要的日期/时间。然后各种toLocale…String方法将提供本地化输出。例:// This would come from the server.// Also, this whole block could probably be made into an mktime function.// All very bare here for quick grasping.d = new Date();d.setUTCFullYear(2004);d.setUTCMonth(1);d.setUTCDate(29);d.setUTCHours(2);d.setUTCMinutes(45);d.setUTCSeconds(26);console.log(d); // -> Sat Feb 28 2004 23:45:26 GMT-0300 (BRT)console.log(d.toLocaleString()); // -> Sat Feb 28 23:45:26 2004console.log(d.toLocaleDateString()); // -> 02/28/2004console.log(d.toLocaleTimeString()); // -> 23:45:26一些参考:toLocaleDateStringtoLocaleTimeString使用getTimezoneOffset