You should be using SimpleDateFormat("dd-MM-yyyy")
.
DD is for day in year, like there are 365 days in a year.
3
solved SimpleDateFormat returning incorrect day on given date [closed]
You should be using SimpleDateFormat("dd-MM-yyyy")
.
DD is for day in year, like there are 365 days in a year.
3
solved SimpleDateFormat returning incorrect day on given date [closed]