2013-10-21 148 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"); 
相关问题