Created
April 26, 2018 10:22
-
-
Save exah/dcc577123d9b094ffb4b30745359feed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const toISO = (date) => new Date( | |
date.getUTCFullYear(), | |
date.getUTCMonth(), | |
date.getUTCDate(), | |
date.getUTCHours(), | |
date.getUTCMinutes(), | |
date.getUTCSeconds(), | |
).toISOString().slice(0, -1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment