Skip to content

Instantly share code, notes, and snippets.

@murillomarigo
Created May 9, 2014 19:43
Show Gist options
  • Save murillomarigo/42d8fe5e1304ccbe3a5f to your computer and use it in GitHub Desktop.
Save murillomarigo/42d8fe5e1304ccbe3a5f to your computer and use it in GitHub Desktop.
var x = [ {"id":1,"start":"\/Date(1238540400000)\/"}, {"id":2,"start":"\/Date(1238626800000)\/"} ];
var myDate = new Date(x[0].start.match(/\d+/)[0] * 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment