Skip to content

Instantly share code, notes, and snippets.

@joehom0416
Last active October 12, 2015 13:58
Show Gist options
  • Select an option

  • Save joehom0416/4037709 to your computer and use it in GitHub Desktop.

Select an option

Save joehom0416/4037709 to your computer and use it in GitHub Desktop.
javascript parse json date string to date time
function parseJsonDate(jsonDateString) {
var d= new Date(parseInt(jsonDateString.replace('/Date(', '')));
return d.getFullYear() + "/" + d.getMonth() + "/" + d.getDate();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment