Created
August 10, 2018 11:38
-
-
Save AbhishekThorat/825e1d4825abe3b10af3ff95fe8c89c3 to your computer and use it in GitHub Desktop.
Create a ISO date using moment by ignoring current timezone.
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
`${moment(date).format('YYYY-MM-DD')}${moment(date).format('Thh:mm:ss')}.000Z` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To support AM and PM ->
${moment(date).format('YYYY-MM-DD')}${moment(date).format('THH:mm:ss')}.000Z
;