date and datetime ranges implemented