1

JSON API から次の文字列を取得しました。

"Date": "\/Date(1381446000000+0100)\/",

次のようになります。

2013-10-11 00:00:00

しかし、代わりに私はこれを取得します:

2013-10-10T23:00:00.000Z

私のコード:

new Date(parseFloat(oldDate.replace("/Date(", "").replace(")/", ""))); 
4

1 に答える 1