Skip to content

Instantly share code, notes, and snippets.

@dagda1
Created October 14, 2010 14:03
Show Gist options
  • Save dagda1/626210 to your computer and use it in GitHub Desktop.
Save dagda1/626210 to your computer and use it in GitHub Desktop.
function dateFromJson(json) {
return new Date(parseInt(json.replace(/(^.*\()|([+-].*$)/g, '')));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment