var date = "8.12.2014 11:30".match(/\d+/g); date = new Date(date[2], date[1]-1, date[0], date[3], date[4]); alert(date);