added fromdate= functionality