代码如下:
Date.UTC(2015, 11, 1,21,37);
>1449005820000
new Date(1449005820000);
>Wed Dec 02 2015 05:37:00 GMT+0800 (中国标准时间)
new Date(1449005820000).toISOString().
replace(/T/, ' '). // replace T with a space
replace(/\..+/, '') // delete the dot and everything after
>"2015-12-01 21:37:00"
参考:How to format a date string in UTC;
最新评论
请问苹果手机怎么安卓,有偿请问
开通后,可以投资美股吗?
只能打开两个 剩下的都打不开 是不是都要翻墙啊
很多网站都打不开,能打开的网站查到的信息有限