//setTime() is really useless becouse you need to convert years, months and days to milliseconds //you can use this constructor to set the date you want Date date19=new Date(2019, 5, 6);