presto-jdbc/src/main/java/io/prestosql/jdbc/PrestoPreparedStatement.java/PrestoPreparedStatement/setDate
class PrestoPreparedStatement:    @Override
    public void setDate(int parameterIndex, Date x)
            throws SQLException
    {
        checkOpen();
        if (x == null) {
            setNull(parameterIndex, Types.DATE);
        }
        else {
            setParameter(parameterIndex, formatLiteral("DATE", DATE_FORMATTER.print(x.getTime())));
        }
    }