Skip to content

Instantly share code, notes, and snippets.

@jefo
Created July 5, 2013 10:50
Show Gist options
  • Save jefo/5933738 to your computer and use it in GitHub Desktop.
Save jefo/5933738 to your computer and use it in GitHub Desktop.
dd.mm.yyyy date js parse
var parseDate = function(dateString) {
// string format is dd.mm.yyyy
var tmp = dateString.split('.');
return new Date(tmp[2], tmp[1], tmp[0]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment