规定格式:
private SimpleDateFormat time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
使用:
map.put("time", time.format(new Date()));
规定格式:
private SimpleDateFormat time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
使用:
map.put("time", time.format(new Date()));