我从服务器接收到的时间格式为(1473286826319)
。使用MomentJS库。
moment(1473286826319).format()
// output 2016-09-07T16:20:26-06:00 i.e sep 7 2016
然而,当我使用以下自定义格式样式时:
moment(1473286826319).format('dddd, MMMM d, YYYY, h:mm A');
// output Wednesday, September 3, 2016, 4:20 PM
我有从9月7日
到9月3日
的日期,其余数据是准确的。我是否做错了什么?