时间戳转换JavaScript [英] Timestamp conversion JavaScript
问题描述
我想知道什么是转换这种格式的时间戳的最佳方法 -
I wondering what is the best way to convert a timestamp of this format -
2012-02-18 14:28:32
以此格式的日期介绍 -
to a date presentation of this format -
Saturday Feb 2012 14:28:32
非常感谢:)
推荐答案
Javascript日期功能非常糟糕...您可以选择转换为UTC http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_toutcstring
Javascript date functions are pretty bad... You have the option to convert to UTC http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_toutcstring
但如果是我,我会查看Datejs: http ://www.datejs.com/ 对我来说最好的javascript日期api
But if it was me, i would look into Datejs: http://www.datejs.com/ best javascript date api for me
请看看Datejs的入门: http://www.datejs.com/2007/11/27/getting-started -with-datejs /
Please take a look at the getting started with Datejs: http://www.datejs.com/2007/11/27/getting-started-with-datejs/
这篇关于时间戳转换JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!