var dateStr = "8.12.2014 11:30", ms = Date.parse(dateStr.replace(/^(\d+)\.(\d+)\./, "$2-$1-")); alert((new Date(ms)).setHours(0, 0, 0, 0) == (new Date).setHours(0, 0, 0, 0));