Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.