futureDate and pastDate working