Fixes #7 by adding support for date ranges