【问题标题】:I want timestamp in following format "2020-06-04T07:37:19.2623962Z" [closed]我想要以下格式的时间戳“2020-06-04T07:37:19.2623962Z”[关闭]
【发布时间】:2020-09-24 11:18:27
【问题描述】:

我想要格式为“2020-06-04T07:37:19.2623962Z”的时间戳,我正在研究角度。

【问题讨论】:

标签: javascript angular typescript timestamp format


【解决方案1】:

您好,这看起来像 ISO 格式,这是 JavaScript 中 Date 对象的一部分。如果你正在使用它,你可以简单地写

new Date().toISOString();

【讨论】:

    猜你喜欢
    • 2018-12-18
    • 2018-12-01
    • 2017-12-25
    • 1970-01-01
    • 1970-01-01
    • 2022-01-26
    • 2018-05-21
    • 1970-01-01
    • 2020-08-09
    相关资源
    最近更新 更多