Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created November 20, 2009 16:22
Show Gist options
  • Save swannodette/239595 to your computer and use it in GitHub Desktop.
Save swannodette/239595 to your computer and use it in GitHub Desktop.
var dt = doc.dtfield.substr(0, doc.dtfield.length-1).split('T');
var d = dt[0].split('-');
var t = dt[1].split(':');
var utc = Date.UTC.apply(null, d.concat(t));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment