restrict date range for version switch