I am using Java 8 to parse the the date and find difference between two dates.
Here is my snippet:
String date1 =\"01-JAN-2017\"; String date2 = \"02-FEB
Try using DateTimeFormatter dtf = DateTimeFormatter.ofPattern("dd-LLL-yyyy",Locale.ENGLISH);
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("dd-LLL-yyyy",Locale.ENGLISH);