come posso formattare una data(new date() in formato gg/mm/aaaa in javascript

avrei un'altra domanda , esiste una funzione per validare una data?