Added support for date range selection.