Javascript equivalent of php's strtotime()?

后端 未结 8 1240
無奈伤痛
無奈伤痛 2020-11-27 19:33

In PHP, you can easily convert an English textual datetime description into a proper date with strtotime().

Is there anything similar in Javascript?

8条回答
  •  一生所求
    2020-11-27 19:43

    There are few modules that provides similar behavior, but not exactly like PHP's strtotime. Among few alternatives I found date-util yields the best results.

提交回复
热议问题