Why aren't my dates working in typescript?

后端 未结 0 949
难免孤独
难免孤独 2020-12-05 06:17

I\'m trying to initialize a Date object by doing:

let date = new Date(2020, 12, 5, 0, 0, 0, 0); then when I do date.getMonth()

I get 0

can someone help

相关标签:
回答
  • 消灭零回复
提交回复
热议问题