将日期转换为 UTC 时间戳
我有以下 UTC 日期 2022-02-24T17:30:00.0000000。我不确定它是什么格式,但我需要将其转换为 utc 时间戳。我怎样才能做到这一点?我尝试使用
var parseISO = require('date-fns/parseISO');
parseISO("2022-02-24T17:30:00.0000000").getTime()
,但这没有给我正确的时间戳。
有人可以帮忙吗?
I have the following date 2022-02-24T17:30:00.0000000 in UTC. I'm not sure what format it is in, but I need to convert it into a utc timestamp. How can I do that? I tried using
var parseISO = require('date-fns/parseISO');
parseISO("2022-02-24T17:30:00.0000000").getTime()
but that's not giving me the right timestamp.
Can someone please help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论