Date date = null;
String d2 ;
SimpleDateFormat sdf = new SimpleDateFormat("MMM d,yyyy HH:mm:ss aa", Locale.ENGLISH);
try {
date = sdf.parse(terminalVisit.getCreateDate());
SimpleDateFormat sdf2=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
d2 = sdf2.format(date);
holder.setText(R.id.txtLatestVisitDate,d2);//拜访日期
} catch (ParseException e) {
e.printStackTrace();
}
网友评论