getFullYear on ISO date

后端 未结 0 1161
生来不讨喜
生来不讨喜 2021-02-01 09:35

I need to getFullYear on a JavaScript Date, however newing up a Date() creates it at UTC, and in the cases of January 1, it becomes LAST YEAR. (at my timezone, EST)

so:

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