Skip to content

Instantly share code, notes, and snippets.

Created Nov 16, 2011
What would you like to do?
convert json date to javascript date
convertDate: function (jsonDate) {
var someDate = new Date(+jsonDate.replace(/\/Date\((-?\d+)\)\//gi, "$1"));
return someDate;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment