Add functionality for date-ranges