Create a Date with a set timezone without using a string representation

前端 未结 23 1427
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 01:48

I have a web page with three dropdowns for day, month and year. If I use the JavaScript Date constructor that takes numbers, then I get a Date obje

23条回答
  •  被撕碎了的回忆
    2020-11-22 02:22

    I know this is old but if it helps you could use moment and moment time zone. If you haven't seen them take a look.

    http://momentjs.com/timezone/

    http://momentjs.com/

    two really handy time manipulation libraries.

提交回复
热议问题