Skip to content

Instantly share code, notes, and snippets.

@Boldewyn
Forked from madrobby/index.js
Created May 18, 2011 12:06
Show Gist options
  • Save Boldewyn/978455 to your computer and use it in GitHub Desktop.
Save Boldewyn/978455 to your computer and use it in GitHub Desktop.
function(s,k){k=s.match(/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/);return new Date(Date.UTC(k[1],k[2]-1,k[3],k[4],k[5],k[6]))}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment