String mtime = (String)orderInfo.get("mtime"); //获取时间
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date mDate=null;
try {
mDate = sf.parse(mtime);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
SimpleDateFormat daySf = new SimpleDateFormat("MM-dd");
String monthDay = daySf.format(mDate);
SimpleDateFormat weekSf = new SimpleDateFormat("E");
String week = weekSf.format(mDate);
week= "周"+week.substring(2);
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date mDate=null;
try {
mDate = sf.parse(mtime);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
SimpleDateFormat daySf = new SimpleDateFormat("MM-dd");
String monthDay = daySf.format(mDate);
SimpleDateFormat weekSf = new SimpleDateFormat("E");
String week = weekSf.format(mDate);
week= "周"+week.substring(2);