var r = /(\d{2})-(\d{2})-(\d{4})/; var d = "23-10-2009"; var dNormalized = d.replace(r, "$3/$2/$1"); var date = new Date(dNormalized); alert(date)