我正在使用 highcharts 一个 JS 库,它为我提供了 UTC 格式的某个点的时间:2592000000,它应该与 2011 年某个日期相关联。
我如何获得实际日期?
最佳答案
更新
结账 date.js 。它扩展了 Date.parse 方法和 Date.parseExact 方法,您可以指定格式字符串。
http://code.google.com/p/datejs/wiki/APIDocumentation
查看moment.js ...
A lightweight javascript date library for parsing, manipulating, and formatting dates.
关于javascript - 将 UTC 时间转换为 JavaScript 日期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8334946/