获得当前时间
//没有日期必传当天 Date day=new Date(); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String today = df.format(day);