create JavaScript Date object from date string

后端 未结 2 754
暗喜
暗喜 2021-01-18 08:34

I would like to create a valid JavaScript Date object from the following string \"010-10-25T23:25:55.847Z\".

This string comes out of a PostGIS database \"timestamp

2条回答
  •  星月不相逢
    2021-01-18 09:08

    These links might help:

    Javascript equivalent of php's strtotime()?

    http://phpjs.org/functions/strtotime:554

提交回复
热议问题