Limiting Dates not working correctly