presto-rcfile/src/main/java/io/prestosql/rcfile/text/DateEncoding.java/DateEncoding/parseDate
class DateEncoding:    private static int parseDate(Slice slice, int offset, int length)
    {
        long millis = HIVE_DATE_PARSER.parseMillis(slice.toStringAscii(offset, length));
        return toIntExact(MILLISECONDS.toDays(millis));
    }