search

Home  >  Q&A  >  body text

javascript - moment.js Beijing time to UTC time

How to convert the date in the format of 2017-04-22 19:50:16 into the UTC format of "2017-04-22T11:50:18.389Z"?

滿天的星座滿天的星座2826 days ago1011

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-19 10:36:21

    moment("2017-04-22 19:50:16").utc().format()

    reply
    0
  • Cancelreply