Skip to content

Instantly share code, notes, and snippets.

@Boldewyn
Forked from madrobby/index.js
Created May 18, 2011
Embed
What would you like to do?
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