Generate an RFC 3339 timestamp similar to Google Tasks API?

前端 未结 7 2196
时光取名叫无心
时光取名叫无心 2020-12-02 20:45

I am in the process of building an app that syncs with Google Tasks. As part part of the syncing, I want to compare the local task and the API task, and see which one has be

7条回答
  •  借酒劲吻你
    2020-12-02 20:52

    It seems like a lot of complicated answers have been given, but this works just fine, does it not?

    (new Date()).toISOString()
    

提交回复
热议问题