Java Gotcha: Parse string using SimpleDateFormat with months greater than 12
I was the other day trying to parse a date string into a date object using SimpleDateFormat to check for the validity of the date string. I had the SimpleDateFormat defined as: SimpleDateFormat expiryDateFormat = new SimpleDateFormat(“dd/MM/yyyy”);. The date string I was trying to parse was: 10/26/2016 which is clearly invalid with respect to the … Read more