如题所述
String bt_time = request.getParameter("SysTime"); //客æ·ç«¯ä¼ ä¸æ¥çå¼
BatteryHdata bh=new BatteryHdata(); //BatteryHdata 为å®ä½ç±»
SimpleDateFormat date=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
try {
bh.setBatteryTesttime(date.parse(bt_time));
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
-
BatteryHdata bh=new BatteryHdata(); //BatteryHdata 为å®ä½ç±»
SimpleDateFormat date=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
try {
bh.setBatteryTesttime(date.parse(bt_time));
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
-
温馨提示:答案为网友推荐,仅供参考