filter dates with datetime class