var dateStr = "13.05.2014"; var ms = Date.parse(dateStr.replace(/^(\d+)\.(\d+)\./, '$2-$1-')); alert(new Date(ms));