common_helper/src/main/java/com/xiongyingqi/util/DateHelper.java
public static Date getDay(Date date) {
//        long time = date.getTime() / 1000;
//        System.out.println(time);
//        System.out.println(CalendarHelper.DAY);
//        long day = 24 * 60 * 60;
//        System.out.println(time % (day * 1000));
//        System.out.println((time % day) / CalendarHelper.HOUR);
//        time = time - (time % day);
//        Date date1 = new Date(time * 1000);
        String dateStr = FORMATTER_SHORT.format(date);
        Date date1 = strToDate(dateStr, FORMATTER_SHORT);
        return date1;
    }
public static Date getDay(Date date) {
//        long time = date.getTime() / 1000;
//        System.out.println(time);
//        System.out.println(CalendarHelper.DAY);
//        long day = 24 * 60 * 60;
//        System.out.println(time % (day * 1000));
//        System.out.println((time % day) / CalendarHelper.HOUR);
//        time = time - (time % day);
//        Date date1 = new Date(time * 1000);
        String dateStr = FORMATTER_SHORT.format(date);
        Date date1 = strToDate(dateStr, FORMATTER_SHORT);
        return date1;
    }
获取时间的日期（转换为0时）

@param date
@return