The string is of the format dd/mm/yyyy
I am parsing using the following code:-
Dateformat dateformatter = new SimpleDateFormat("EEE, MMM d, ''yy");
dateformatter.setLenient(false );
String temp = "7/07/2017"
Date date = null;
try {
date = new SimpleDateFormat("dd/mm/yyyy").parse(temp);
}
catch(ParseException e){
e.printStackTrace();
}
dateformatter.format(date);
The value that I get for date
is Sat Jan 07 00:07:00 GMT + 10:00 2017
After formatting I get Sat, Jan 7, '17
The value I expect is FRI Jul 07, '17