java Date日期去掉时分秒 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");String s = sdf.format(new Date());Date date = sdf.parse(s); 来自为知笔记(Wiz)