What are the factors that make a date parsing not parsing the month correctly?
I have this very basic code :
DateFormat format = new SimpleDateFormat("DD/MM/yyyy", Locale.FRENCH);
Date date = format.parse(dateInterv);
dateInterv
is a String
with the value "14/06/2016" , and when I parse the date, date
is in january. Even in debugger I can't see why it transforms 14/06/2016 into 14/01/2016.