【发布时间】:2020-03-11 18:30:49
【问题描述】:
如何在 React Native 应用中转换 Date without timsezone?
new Date('2019-11-15T00:00:00+00:00')
它给2019-11-14T00:00:00.000Z?
如何确定是 15 号?
【问题讨论】:
-
你为什么不用
moment.js? -
这能回答你的问题吗? How to ignore time-zone on new Date()?
-
糟糕的是,我无法将 strng 分配给 Nativebase DatePicker defaultDate。