library/src/main/java/com/kenmeidearu/materialdatetimepicker/date/DatePickerDialog.java
/**
     * Trims off all time information, effectively setting it to midnight
     * Makes it easier to compare at just the day level
     *
     * @param calendar The Calendar object to trim
     * @return The trimmed Calendar object
     */
Trims off all time information, effectively setting it to midnight
Makes it easier to compare at just the day level

@param calendar The Calendar object to trim
@return The trimmed Calendar object
Trims off all time information effectively setting it to midnight Makes it easier to compare at just the day level @param calendar The Calendar object to trim @return The trimmed Calendar object
private Calendar trimToMidnight(Calendar calendar) {
        calendar.set(Calendar.HOUR_OF_DAY, 0);
        calendar.set(Calendar.MINUTE, 0);
        calendar.set(Calendar.SECOND, 0);
        calendar.set(Calendar.MILLISECOND, 0);
        return calendar;
    }
private Calendar trimToMidnight ( Calendar calendar ) { calendar . set ( Calendar . HOUR_OF_DAY , 0 ) ; calendar . set ( Calendar . MINUTE , 0 ) ; calendar . set ( Calendar . SECOND , 0 ) ; calendar . set ( Calendar . MILLISECOND , 0 ) ; return calendar ; }
Trims off all time information, effectively setting it to midnight
 Makes it easier to compare at just the day level
Trims off all time information effectively setting it to midnight Makes it easier to compare at just the day level