dateRange.get() rangeObj should be object not array