2013-10-21 158 views
-4

可以將毫秒轉換爲日期和時間字符串。假設我有毫秒在很長的號碼,我希望它是這樣的: 2013年10月22日9點五十分17秒 是這樣的可能嗎?如何將毫秒轉換爲日期和時間字符串?

+5

在這裏你去:http://stackoverflow.com/questions/4673527/converting-milliseconds-to-a-date-jquery-js,http://stackoverflow.com /問題/ 8579861 /如何對轉換 - 毫秒 - 到 - 一個可讀的最新,http://stackoverflow.com/questions/12196689/how-to-convert-milliseconds-to-a-date-string,HTTP ://stackoverflow.com/questions/12435403/convert-datetime-to-milliseconds – ahren

回答

0

像這樣:

var date = new Date(1324339212260); 
date.toString("MMM dd"); 
相關問題