SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy"); Date today = new Date(); System.out.println(formatter.format(today));