Getting wrong date when I am trying to parse actual date
问题 My actual date format is: Saturday, June 10 11:18 AM I want to convert this format to yyyy-MM-dd HH:mm:ss . For that I am trying to parse input string using below code: SimpleDateFormat format = new SimpleDateFormat("EEEE, MMMM dd HH:mm aa", Locale.ENGLISH); Log.d("date:","date is:"+format.parse(resultstr)); The output of the line gives: Wed Jun 10 00:00:00 GMT+05:30 1970 But I don't know why it is giving this value instead of actual value. 回答1: java.time.MonthDay You might be able to parse