presto-main/src/main/java/io/prestosql/util/DateTimeUtils.java/DateTimeUtils/parseDate
class DateTimeUtils:    public static int parseDate(String value)
    {
        return (int) TimeUnit.MILLISECONDS.toDays(DATE_FORMATTER.parseMillis(value));
    }