jquery转换号码到目前为止?

我有一个json文件返回“date_created”:“1273185387”的时代格式

我想把它转换成像这样的星期四,06五月2010 22:36:27 GMT

任何脚本做这个转换?

解决方法

var myObj = $.parseJSON('{"date_created":"1273185387"}'),myDate = new Date(1000*myObj.date_created);

console.log(myDate.toString());
console.log(myDate.toLocaleString());
console.log(myDate.toUTCString());

http://jsfiddle.net/mattball/8gvkk/

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: <span id=&quot...
jQuery 添加水印 <script src="../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...