我正在开发 android 应用程序,我想在其中根据我的格式解析我的日期。但是我得到了不可解析的日期异常。我的代码如下,请帮我根据我的格式解析我的日期。
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();
}
请帮帮我。