Created
July 2, 2020 07:10
-
-
Save virtualhobbit/a7f5c30a425ce806518281db2a889cd0 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
var dateStr; | |
var chars = [":","-"]; | |
for (var i = 0; i < chars.length;i++) { | |
while (inDate.indexOf(chars[i]) !== -1) { | |
inDate = inDate.replace(chars[i],""); | |
} | |
} | |
dateStr = inDate.split(".")[0] + "Z"; | |
return dateStr; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment