I am working on android application in which i want to parse my date according to my format. But i am getting Unparseable date exception on it. My code is given below, please help me out to parse my date according to my format.
SimpleDateFormat stestRequest = new SimpleDateFormat("EEE, MMM dd, yyyy hh:mm aa");
try {
month = month +1;
Date dateRequestSelected = stestRequest.parse(day+", "+month+" "+day+", "+year+" "+hour+":"+minutes+ state); // 20, 1 20, 2016 10:28 am
// I need a format like Monday, January 20, 2016 10:28 am
} catch (ParseException e) {
e.printStackTrace();
}catch (Exception e) {
e.printStackTrace();
}
Please help me out here.