with(df, df[(date >= "2008-01-02" & date <= "2008-01-05") | (date >= "2008-01-09" & date <= "2008-01-11"), ])