我正在尝试将 MM/DD/YYYY 格式的日期转换为以下秒/纳秒格式。我的问题是为什么我的时间超出了界限?我应该删除零吗?:格式:"license_expiration_date": { "_seconds": 1560988800000, "_nanoseconds": 0 }要转换的代码:let date = new Date('06/20/2019');let time = date.getTime();console.log(time);输出:1560988800000错误:status: false, message: 'Value for argument "seconds" must be within [-62135596800, 253402300799] inclusive, but was: 1587340800000'
添加回答
举报
0/150
提交
取消