Skip to content

Instantly share code, notes, and snippets.

@sartak
Forked from hatched/gist:2648479
Created May 9, 2012 20:13
Show Gist options
  • Save sartak/2648488 to your computer and use it in GitHub Desktop.
Save sartak/2648488 to your computer and use it in GitHub Desktop.
normalizeIsoDate: function(date) {
if (date == "today") {
return new Date();
}
var split = date.split('-');
return new Date(split[0], split[1], split[2]);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment