Resultset date range

NOT YET READY FOR MERGE