Reputation: 1613
I'm looking to get the current time in this format. Like in Go you an import time and then time.now() will give you the current time in this format. I'm sure there is a library that will do this but I'm having a really hard time tracking it down on google/here. Does anyone happen to know what it is or can point me in the right direction? Thanks much.
Upvotes: 0
Views: 101
Reputation: 183
Use :
new Date().toISOString()
https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Date/toISOString
Upvotes: 2